Created
September 16, 2020 13:54
-
-
Save alirezamika/743234bb98ba1e59e9727ef7788c7da9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url = 'https://www.etsy.com/search?q=macbook' | |
wanted_dict = { | |
'title': [ | |
'Apple MacBook Pro i9 32GB 500GB Radeon 560X 15.4 2018 Touch Bar 2.9GHz 6-Core', | |
'Laptop MacBook Premium Ergonomic Wood Stand Holder Computer Gift Nerd Tech Geek Mens, woodworking gift, Home office workspace accessories', | |
], | |
'price': ['1,500.00', '126.65'], | |
'url': ['851553172'] | |
} | |
scraper = AutoScraper() | |
scraper.build(url=url, wanted_dict=wanted_dict) | |
# get results grouped per rule so we'll know which one to use | |
scraper.get_result_similar(url, grouped=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment