jeudi 20 juin 2019

Download RTF files with Python

I need to download a list of RTF files locally with Python3.

I tried with urllib

import urllib
url = "www.calhr.ca.gov/Documents/wfp-recruitment-flyer-bachelor-degree-jobs.rtf"
urllib.request.urlopen(url)

but I get a ValueError

ValueError: unknown url type: 'www.calhr.ca.gov/Documents/wfp-recruitment-flyer-bachelor-degree-jobs.rtf'

How to deal with this kind of file format?




Aucun commentaire:

Enregistrer un commentaire