Skip to content

Instantly share code, notes, and snippets.

View spjoshis's full-sized avatar
🎯
Focusing

Gopal Joshi spjoshis

🎯
Focusing
View GitHub Profile
@spjoshis
spjoshis / amazon-scraping-mobiles.py
Created June 21, 2020 06:50
Scrape script to get latest mobile phones from Amazon
""" Scrape latest mobile phones from Amazon """
# virtualenv -p /usr/bin/python3 100DaysofCode
import requests
from lxml import html
from bs4 import BeautifulSoup
import json
session_requests = requests.session()
from progress.bar import Bar
bar = Bar('Processing', max=20)
for i in range(20):
# Do some work
bar.next()
bar.finish()