nmcassa / letterboxdpy Goto Github PK
View Code? Open in Web Editor NEWA letterboxd webscraper
Home Page: https://pypi.org/project/letterboxdpy/
License: MIT License
A letterboxd webscraper
Home Page: https://pypi.org/project/letterboxdpy/
License: MIT License
Movies that have the same title (arrival (2013), arrival (1980), arrival (2016)) have different url's with the year in the top.
So far no way to specify movie.
Could search the name and pick the most popular.
Could add a constructor that takes a year to get more accurate.
Hello, I've used letterboxdpy in the past with no issues at all, but just to gather data about movies.
I'm tying now to do the same with users, but I keep getting the errors ''NoneType object has no attribute 'text'' and then 'No user found', even when using the example provided in the readme.md.
from letterboxdpy import user
nick = user.User("nmcassa")
print(nick)
these are the errors I get:
Thank you in advance.
If you begin the movie title with a capital letter, for example:
if __name__ == "__main__":
king = Movie("King kong")
print(king)
You get:
...
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.10/site-packages/letterboxdpy/movie.py", line 178, in <module>
king = Movie("King kong")
File "/opt/homebrew/lib/python3.10/site-packages/letterboxdpy/movie.py", line 25, in __init__
self.movie_genre(page)
File "/opt/homebrew/lib/python3.10/site-packages/letterboxdpy/movie.py", line 91, in movie_genre
raise Exception("No movie found")
Exception: No movie found
To resolve, you could either update the README to reflect this or update https://github.com/nmcassa/letterboxdpy/blob/main/src/letterboxdpy/movie.py#L14 to automatically convert the title to lowercase with:
self.title = title.replace(' ', '-').lower()
The wheel for letterboxdpy
4.0 is buggy โ it installs src/letterboxdpy
instead of letterboxdpy
and it doesn't contain __init__.py
. See the bug in action at https://stackoverflow.com/questions/77542786/modulenotfounderror-no-module-named-letterboxdpy/77542850
Some meta data for new or very small movies aren't added.
Searching through some movies it looks like they just arent there.
Probably need to add some try catches and just not populate some variables for movies
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.