Code Monkey home page Code Monkey logo

amz-review-scraper's People

Contributors

alanswenson avatar davidbegin avatar

Stargazers

 avatar  avatar  avatar

Forkers

davidbegin

amz-review-scraper's Issues

add CI for zappa to travis

language: python python: '2.7' script: echo "all tests passing" after_success: - pip install -r requirements.txt - zappa update dev

Extract out a Chunk of HTML for testing.

Right now with the Giant HTML file, it is hard to look through and understand what the code is looking for. And also makes the project look like it's HTML. It being real is a great advantage, But I would think of an easy way to a run a test against real html, without saving it. And the regular test should just use an artificially trimmed chunk

Here is the error from terminal

An Error Occured While Scraping
Traceback (most recent call last):
File "app.py", line 44, in
main()
File "app.py", line 35, in main
amazon.scrape(url, asin)
File "/Users/alanswenson/projects/amz-review-scraper/amz-review-scraper/amzscraper.py", line 26, in scrape
raw_html = requests.get(url, headers=header, proxies=proxies)
File "/Users/alanswenson/.local/share/virtualenvs/amz-review-scraper-SIwdd7Z0/lib/python3.6/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/Users/alanswenson/.local/share/virtualenvs/amz-review-scraper-SIwdd7Z0/lib/python3.6/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/Users/alanswenson/.local/share/virtualenvs/amz-review-scraper-SIwdd7Z0/lib/python3.6/site-packages/requests/sessions.py", line 515, in request
prep.url, proxies, stream, verify, cert
File "/Users/alanswenson/.local/share/virtualenvs/amz-review-scraper-SIwdd7Z0/lib/python3.6/site-packages/requests/sessions.py", line 690, in merge_environment_settings
no_proxy = proxies.get('no_proxy') if proxies is not None else None
AttributeError: 'str' object has no attribute 'get'

@davidbegin

Establish and Track Code Coverage

So you have some tests now, and you want always make sure you are maintaining and hopefully increasing coverage. I would figure out a code coverage tool, and enforce it in travis and add a badge to readme.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.