matcornic / addic7ed Goto Github PK
View Code? Open in Web Editor NEWAddic7ed API - Golang package for downloading the best tv-show subtitles from Addic7ed website
License: MIT License
Addic7ed API - Golang package for downloading the best tv-show subtitles from Addic7ed website
License: MIT License
Here is the log when compiling, it seems go-textdistance is not working
pi@raspberrypi:~/go/src/github.com/addic7ed $ go build
# github.com/masatana/go-textdistance
../../../pkg/mod/github.com/masatana/[email protected]/util.go:7:12: constant 9223372036854775807 overflows int
The Download
function fetches the page of the subtitle. But, Addic7ed has a limit on number of downloads
Extract of HTML file:
Daily Download count exceeded. Login to continue.<br><br>
Error: 2: Anonymous users are limited to 15 downloads per 24 hours on their IP address. Fix: Login to get more<br><br><br>Registered users are limited to 40 but VIPs get 80 downloads every 24 hours. Please consider donating to become VIP and show your support.
TODO: handle correctly the case by returning an error, when detected.
First of all, nice job @matcornic!
I would love to see a CLI as an extended functionality to non-programmer users as well, this will be helpful to you as well I think :)
github.com/matcornic/addic7ed/cmd/addic7ed/main.go
~ go get -u github.com/matcornic/addic7ed/cmd/addic7ed
Recommendation: Check the colly package created by @asciimoo, colly is a higher-level pkg based on the goquery that you're already using, it may make your job easier, give it a try:)
Congrats and keep that strong!
Thanks,
Gerasimos Maropoulos - Author of Iris
Hi,
I have tested it with file:
Borgia S01E01 BD Rip 720p Compact HEVC 10 Bit AAC Stereo EN SRT
When I put on search page in Addicted, I get 2 results, but when the code search for inexistant .titulo class, so it doesnt find any result.
Analysing Addicted search page, result is:
<table class="tabel" align="center" width="80%" border="0">
<tr>
<td>
<img src="https://www.addic7ed.com/images/television.png" /></td>
<td><a href="serie/Borgia/1/1/1492" debug="52384">Borgia - 01x01 - 1492</a></td>
</tr>
<tr>
<tr>
<td><img src="https://www.addic7ed.com/images/television.png" /></td>
<td>
<a href="serie/The_Borgias/1/1/The_Poisoned_Chalice" debug="41974">The Borgias - 01x01 - The Poisoned Chalice</a>
</td>
</tr>
<tr>
<p>
<p>
</table>
Add7cted has bad HTML code :(
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.