Skip to content

Instantly share code, notes, and snippets.

@alirezamika
Created September 16, 2020 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alirezamika/743234bb98ba1e59e9727ef7788c7da9 to your computer and use it in GitHub Desktop.
Save alirezamika/743234bb98ba1e59e9727ef7788c7da9 to your computer and use it in GitHub Desktop.
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