Skip to content

Instantly share code, notes, and snippets.

View pbabvey's full-sized avatar

Pouria Babvey pbabvey

  • 1 Castle Point Terrace, Hoboken, NJ 07030
View GitHub Profile
@pbabvey
pbabvey / amazon_reviews.py
Created February 19, 2019 21:31 — forked from scrapehero/amazon_reviews.py
Python 3 code to extract amazon reviews
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Written as part of https://www.scrapehero.com/how-to-scrape-amazon-product-reviews-using-python/
from lxml import html
from json import dump,loads
from requests import get
import json
from re import sub
from dateutil import parser as dateparser
from time import sleep