Comments (4)
same as #25. Already reported.
from subtitle-downloader.
from subtitle-downloader.
The latest version of the script is broken for packages and functionality as well.
Installed the requests, lxml, and BeautifulSoup packages. However, the script remains broken for SubDB search included! I manually searched on SubDB for many movies and found subtitles. Example, Moneyball released in 2011. The script however doesn't download from SubDB, I commented the SubScene code and put some debugs to find it's giving a 404 error.
When was this last tested to be working?
from subtitle-downloader.
there are few unnecessary module in this repos, like requests
its only shorthand for urllib and not builtin module and we can replace with function get()
like
def get(url):
req = urllib2.Request(url)
html = urllib2.urlopen(req).read()
return html
second is module bs4 (BeautifulSoup)
known as super slow html parser (http://blog.dispatched.ch/2010/08/16/beautifulsoup-vs-lxml-performance/) use instead lxml directly or powerful Regex so dont need to install module lxml.
another problem is search results is no longer with structure a > span
tags but to capture the results we can use regex
re.compile('href="(/subtitles/[^"]+)"').findall(html)
I'm not an expert so let wait @manojmj92 to completely rewrite this project 😃
from subtitle-downloader.
Related Issues (20)
- Commit aa37dd breaks script HOT 1
- ImportError HOT 5
- Update README.md HOT 1
- Tried to use it on Ubuntu 16.04 HOT 1
- Support for other languages
- I've tried as instructed But Nothing Happend HOT 6
- Add requirements.txt to install dependency required
- Getting BadZipFile Exception while downloading the subtitle HOT 1
- This Error on Windows HOT 1
- Subtitles not downloading getting a lxml parsing error HOT 1
- AttributeError("'builtin_function_or_method' object has no attribute 'namelist'",) HOT 2
- Action file for Dolphin/KDE5 HOT 1
- Cannot install missing modules HOT 1
- cmd file and python script works - send to doesn't (windows 10) HOT 1
- Not working for many movies HOT 3
- instructions aren't clear HOT 3
- nemo-script on linux-mint (18.3, cinnamon) not working
- adding more language
- 15 BOX OFFICE MOVIES 2023
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subtitle-downloader.