A web scraper build to search specific information for a given compound (and its pseudonyms)

fixed forgotten self.website usage

RTB 22909152 d7d2a659

+1 -1
+1 -1
FourmiCrawler/sources/PubChem.py
··· 58 58 # the seperate html page which contains the properties and their values 59 59 60 60 #using this cid to get the right url and scrape it 61 - requests.append(Request(url=self.website_pubchem[:-1] + self.data_url % cid, callback=self.parse_data)) 61 + requests.append(Request(url=self.website_pubchem[:-2].replace("\\","") + self.data_url % cid, callback=self.parse_data)) 62 62 return requests 63 63 64 64 def parse_data(self, response):