Hi All,
I have a website that I need to collect some info from it.
I tried to use simple code like this :
I tried this as well :
any idea what is the problem ?
I have a website that I need to collect some info from it.
I tried to use simple code like this :
import urllib.request headers = {} headers['User-Agent'] = "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:48.0) Gecko/20100101 Firefox/48.0" url= 'https://www.biopharmcatalyst.com/calendars/historical-catalyst-calendar' x = urllib.request.Request(url,headers=headers) html = urllib.request.urlopen(x,timeout=10).read()it didn't work. they python program hang !
I tried this as well :
import requests url= 'https://www.biopharmcatalyst.com/calendars/historical-catalyst-calendar' url_get = requests.get(url)it also didn't work !!!
any idea what is the problem ?