Skip to content

Unexpected error while parsing data #161

@tyl3r

Description

@tyl3r

Unexpected error while parsing data for title 'The Girl with the Needle'

Fallo con Python 3.9, actualice a 3.13.2 y también falla:

Unexpected error while parsing data on page 'https://www.filmaffinity.com/en/userratings.php?user_id=XXX&p=1&orderby=rating-date&chv=list'
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Scripts\fa-scraper.exe\__main__.py", line 7, in <module>
    sys.exit(main())
             ~~~~^^
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\site-packages\fa_scraper\cli.py", line 78, in main
    save_to_csv(data, fieldnames, export_file)
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\site-packages\fa_scraper\fa_scraper.py", line 285, in save_to_csv
    for d in dicts:
             ^^^^^
  File "C:\Users\XXX\AppData\Local\Programs\Python\Python313\Lib\site-packages\fa_scraper\fa_scraper.py", line 154, in get_profile_data
    title_type[0].find_all(class_="type")[0].string.strip(),
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range

También he probado en español y mismo error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions