Comments (1)
Traceback (most recent call last):
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/documentcloud/client.py", line 164, in raise_for_status
response.raise_for_status()
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.beta.documentcloud.org/api/documents/22084993/
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "mdoc_scraper.py", line 81, in
main()
File "mdoc_scraper.py", line 77, in main
scrape_mdoc_stuff('https://www.mdoc.ms.gov/Admin-Finance/Pages/Daily-Inmate-Population.aspx', 'daily_population')
File "mdoc_scraper.py", line 66, in scrape_mdoc_stuff
obj = upload_to_documentcloud(this_dict['url'], this_dict, dc_data)
File "mdoc_scraper.py", line 22, in upload_to_documentcloud
obj.put()
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/documentcloud/base.py", line 177, in put
return self.save()
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/documentcloud/base.py", line 181, in save
self._client.put("{}/{}/".format(self.api_path, self.id), json=data)
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/ratelimit/decorators.py", line 80, in wrapper
return func(*args, **kargs)
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/documentcloud/client.py", line 148, in _request
self.raise_for_status(response)
File "/home/bfeldman89/.virtualenvs/mdoc_scraper-Qob3084f/lib/python3.8/site-packages/documentcloud/client.py", line 169, in raise_for_status
raise APIError(response=exc.response)
documentcloud.exceptions.APIError: 400 - {"title":["This field may not be null."]}
from mdoc_scraper.
Related Issues (8)
- Fix 'Requests call with verify=False disabling SSL certificate checks, security issue.' issue in mdoc_scraper.py
- stopped tweeting images of daily population pdf
- stopped tweeting images of press release pdf
- parse COVID case totals down to facility level
- draft an effing readme FFS
- awkward wording for daily tweet of total COVID cases
- rewrite so that can work with DocumentCloud add-on
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdoc_scraper.