You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frompypartpickerimportScraperpcpp=Scraper()
cpus=pcpp.part_search("AMD Ryzen 7 5800X")
# Properly prints: https://cdna.pcpartpicker.com/static/forever/images/product/9b4cefb2e43f2c358f3a97a31e1be90b.256p.jpgprint(cpus[0].image)
# Turning the Part into a Productproduct=pcpp.fetch_product(cpus[0].url)
# Prints Noneprint(product.image)
When i run this code, the first print statement returns the proper link, but the second one returns None and this has happened for every part/product combo I've tested. Not too big of an issue since you can at least get the image from the Part, but you might want to add this in your README as a note.
The text was updated successfully, but these errors were encountered:
Hi, this seems to be a scraping bug as they have changed the format of the PCPP website since I last updated. I do not currently have time to fix this but I will get to this in the future. As you mentioned, this is low-priority as you can already fetch the image from the search function.
When i run this code, the first print statement returns the proper link, but the second one returns None and this has happened for every part/product combo I've tested. Not too big of an issue since you can at least get the image from the Part, but you might want to add this in your README as a note.
The text was updated successfully, but these errors were encountered: