Git Product home page Git Product logo

letterboxd-rss's People

Contributors

janw avatar jpribyl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

letterboxd-rss's Issues

IndexError for single page watchlist

Found a total of 1 movies
Traceback (most recent call last):
  File "/home/j/.pyenv/versions/letterboxd-rss/bin/letterboxd-rss", line 5, in <module>
    from letterboxd_rss.__main__ import main
  File "/home/j/.pyenv/versions/letterboxd-rss/lib/python3.10/site-packages/letterboxd_rss/__main__.py", line 32, in <module>
    main(sys.argv[1:])
  File "/home/j/.pyenv/versions/letterboxd-rss/lib/python3.10/site-packages/letterboxd_rss/__main__.py", line 29, in main
    process(args)
  File "/home/j/.pyenv/versions/letterboxd-rss/lib/python3.10/site-packages/letterboxd_rss/__init__.py", line 48, in process
    last_page = soup.find_all("li", attrs={"class": "paginate-page"})[-1].text
IndexError: list index out of range

PR submitted here:
#4

If you are open to it, I think it would be relatively easy to add a pytest suite to this library + I can submit a PR for that separately

Issue with Apostrophes

Hi! I've been trying to use your watchlist2rss.py file but i get the following error when it grabs a title with apostrophes:
Adding 28 movies from page 1
Woman at War (2018)
Keep an Eye Out (2018)
Possibly in Michigan (1983)
Minding the Gap (2018)
Trust (2018)
Parsing failed
Traceback (most recent call last):
File "watchlist2rss.py", line 77, in
main()
File "watchlist2rss.py", line 62, in main
movie_description = movie_description.text.strip()
AttributeError: 'NoneType' object has no attribute 'text'

In that case it seems to fail on the movie: "Avant qu'on explose"
Tried it on a list with no french titles and it worked fine.
Link: https://letterboxd.com/jimmyblux/watchlist/

Thanks for your help!

Jobebo

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.