Skip to content

Data not showing up #18

Discussion options

You must be logged in to vote

@subwaysurfing I've released v0.1.13 with the following features:

  • get download summary
  • get download underlying data
  • get csv data

The last one is the one you want to use :

from tableauscraper import TableauScraper as TS
from tableauscraper.TableauScraper import TableauException
import time

loop = True
schedulingSeconds = 5

url = 'https://covid19tracker.health.ny.gov/views/DailyHospitalizationSummary/Reopening-DailyHospitalization'

def schedule():
  print("scheduling")
  time.sleep(schedulingSeconds)

while (loop):
    ts = TS()
    try:
      ts.loads(url)
      wb = ts.getWorkbook()
      data = wb.getCsvData(sheetName="Chart (2)", prefix="vud")
      if data is not None:
          loop

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@bertrandmartel
Comment options

@bertrandmartel
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by bertrandmartel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants