fix useragent and better random useragents
This commit is contained in:
@ -26,7 +26,7 @@ def scrape_listing(url):
|
||||
#print ("Web Page: ", url)
|
||||
|
||||
soup = make_soup(url)
|
||||
|
||||
#print(soup)
|
||||
#print(soup.find("div", class_="vim x-item-title").span.text)
|
||||
#print(soup.find("span", itemprop="price")["content"])
|
||||
#print(soup.find("img", itemprop="image")["src"])
|
||||
@ -40,6 +40,7 @@ def scrape_listing(url):
|
||||
return listing
|
||||
|
||||
if __name__ == "__main__":
|
||||
listing = scrape_listing("https://www.ebay.de/itm/162861653490")
|
||||
print(listing)
|
||||
while(1):
|
||||
listing = scrape_listing("https://www.ebay.de/itm/165841583057")
|
||||
print(listing)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user