GithubHelp home page GithubHelp logo

Support data source pagination about li HOT 9 CLOSED

covidatlas avatar covidatlas commented on August 24, 2024 1
Support data source pagination

from li.

Comments (9)

camjc avatar camjc commented on August 24, 2024

JP is a good example, we hit the 10,000 limit there

from li.

camjc avatar camjc commented on August 24, 2024

https://services8.arcgis.com/JdxivnCyd1rvJTrY/arcgis/rest/services/v2_covid19_list_csv/FeatureServer/0/query lets you query the dataset from a UI. Here are the main settings to get the JSON we use

Screen Shot 2020-05-14 at 07 14 20-fullpage

from li.

camjc avatar camjc commented on August 24, 2024

Hoping someone can advise on how the pagination works, I don't know how it does.

from li.

ryanblock avatar ryanblock commented on August 24, 2024

Agreed. I know nothing about this system. I could really use:

  1. A broken source that needs this
  2. Clear instructions on how it's broken (eg steps to repro)
  3. If available, any ideas on how to unbreak things and get the source humming

from li.

jzohrab avatar jzohrab commented on August 24, 2024

from li.

jzohrab avatar jzohrab commented on August 24, 2024

Actually relevant: currently, the PA scraper fetches paginated data. It handles this itself. e.g.

$ yarn start --location PA
...
1000 records from "... url ...&resultOffset=0&resultRecordCount=50000&f=json
...
✏️  coronadatascraper-cache/2020-5-17/55c884a3dc1f7fe60c5bb08af5371500.json written
1000 records from "... url ... &resultOffset=1000&resultRecordCount=50000&f=json
...
✏️  coronadatascraper-cache/2020-5-17/de03720e752a8e6478e066e3cb308ee2.json written
1000 records from "... url ... &resultOffset=2000&resultRecordCount=50000&f=json
...

ref src/shared/scrapers/PA/
method async function TEMPfetchArcGISJSON(obj, featureURL, date) {

from li.

jzohrab avatar jzohrab commented on August 24, 2024

WIP PR will soon close this: https://github.com/covidatlas/li/pull/193/files

from li.

jzohrab avatar jzohrab commented on August 24, 2024

New PR: #218.

from li.

jzohrab avatar jzohrab commented on August 24, 2024

PR merged 🎉

from li.

Related Issues (20)

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.