Comments (6)
Thanks for the bug report! Taking a look now...
from sodapy.
Which domain are you connecting to? Can you provide the client setup code so that I can try to reproduce the issue?
from sodapy.
I googled the dataset identifier and it led me to this site (which currently appears to be down):
https://data.calgary.ca/d/y8as-bmzj
from sodapy.
The code I used was:
client = Socrata("data.calgary.ca",app_token="")
results = client.get_all("y8as-bmzj")
from sodapy.
Alright, I'm able to query this domain now. Let me try to reproduce. Something else I did notice though is that above you put the response in results
, but then iterate over an undefined data
variable. Could this be causing the bug?
from sodapy.
I'm sorry, I wasn't able to reproduce the problem that you're having. Here is the code that I used.
from sodapy import Socrata
from csv import DictWriter
client = Socrata("data.calgary.ca",app_token="")
results = client.get_all("y8as-bmzj")
with open("coc_test.csv", "w", newline="", encoding="utf-8") as line_file:
csv_writer = DictWriter(line_file, fieldnames=["id","sample_site","sample_date",
"parameter","numeric_result","result_qualifier",
"formatted_result","result_units","latitude_degrees","longitude_degrees","site_key"])
for row in results:
csv_writer.writerow(row)
After this finished running, it correctly produced a file with 293,039 unique rows.
$ uniq -u coc_test.csv | wc -l
293039
I'm going to close this issue. Please feel free to re-open if I missed something.
from sodapy.
Related Issues (20)
- `datasets()` no longer filters on domain
- Missing tag - 1.5.3 HOT 1
- Drop support for python2 by EOL in 2020
- [documentation] List of Eligible Domains is Out of Date
- limit=None reverts to default
- Issue with upsert/replace HOT 5
- Feature request: Option to disable the throttling limit warning HOT 2
- support automatic pagination HOT 1
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Support for Socrata Headers? HOT 3
- Documentation: Include `timeout` param in client example
- Delete By Row ID Not Working HOT 2
- SoQL query support for get_all() HOT 3
- Optional client.get "limit" defaults to 1000. Need limit=none HOT 1
- Needs update: Example 01: Basic Queries HOT 1
- `get_all()` does not paginate correctly, returning duplicate rows HOT 2
- Apply date filter in where field
- This repository will be archived on Aug 31 HOT 1
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 sodapy.