Skip to content

Conversation

@edenbaus
Copy link

@edenbaus edenbaus commented Apr 4, 2019

  • Changed docstring to point to README.md not README.rst
  • wrapped exception tuples in parenthesis
  • use f string to create url
  • switch to requests library to open url
  • change urllib2 to urllib

- Changed docstring to point to README.md not README.rst
- wrapped exception tuples in parenthesis
- use f string to create url
- switch to requests library to open url
- change urllib2 to urllib
@mdublin
Copy link

mdublin commented Jun 21, 2019

@edenbaus probably want to add a header w/User-Agent to the new requests code now that Open Secrets is currently preventing generic user agents from scraping their site (will result in 403 response if left as-is).

@edenbaus
Copy link
Author

@mdublin Good suggestion.

I’ll update the pull request with the relevant header/user agent code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants