from pypartpicker import Scraper
# creates the scraper object
pcpp = Scraper()
# returns a list of Part objects we can iterate through
print ("Including entries without prices")
parts = pcpp.part_search("AMD Ryzen", region="uk")
# iterates through every part object
for part in parts:
# prints the name and price of the part
print(part.name)
print(part.price)
print("Excluding entries without prices")
for part in parts:
if part.price is not None:
# prints the name and price of the part
print(part.name)
print(part.price)
Yields the following results
But upon checking the results for the same search on pcpp, you can see that many of these cpus do have prices
Am I missing something or are the prices not being scraped correctly?
Searching for prices using the following code
Yields the following results
But upon checking the results for the same search on pcpp, you can see that many of these cpus do have prices
Am I missing something or are the prices not being scraped correctly?