Giter Club home page Giter Club logo

Comments (7)

joenano avatar joenano commented on September 24, 2024

should be fixed

from rpscrape.

phillc73 avatar phillc73 commented on September 24, 2024

Thanks, but similar error, different place

No flat race data for Zonza in 2019.
Traceback (most recent call last):
  File "./rpscrape.py", line 715, in <module>
    main()
  File "./rpscrape.py", line 711, in main
    parse_args([arg.strip() for arg in args.split()])
  File "./rpscrape.py", line 679, in parse_args
    scrape_races(races, course_name(scrape_target), args[1], code)
  File "./rpscrape.py", line 584, in scrape_races
    winning_time[0].replace("m", "")) * 60 + float(winning_time[1].strip("s")
ValueError: could not convert string to float: '57.59s'

from rpscrape.

joenano avatar joenano commented on September 24, 2024

ok try again

from rpscrape.

phillc73 avatar phillc73 commented on September 24, 2024

Thanks for your efforts, but....

No flat race data for Zonza in 2019.
ValueError: (dist to metres conversion) RACE:  
Traceback (most recent call last):
  File "./rpscrape.py", line 719, in <module>
    main()
  File "./rpscrape.py", line 715, in main
    parse_args([arg.strip() for arg in args.split()])
  File "./rpscrape.py", line 683, in parse_args
    scrape_races(races, course_name(scrape_target), args[1], code)
  File "./rpscrape.py", line 574, in scrape_races
    info = doc.xpath('//div[@class="rp-raceInfo"]')[0].find('.//li').findall('.//span[@class="rp-raceInfo__value"]')
IndexError: list index out of range

from rpscrape.

joenano avatar joenano commented on September 24, 2024

what was the last recorded race?

from rpscrape.

joenano avatar joenano commented on September 24, 2024

I scraped fr 2018 flat successfully so hopefully should work now for you.

Any other problems, always give info of the last recorded race.

from rpscrape.

phillc73 avatar phillc73 commented on September 24, 2024

Works now, thanks.

from rpscrape.

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.