3 unstable releases
0.2.0 | Feb 9, 2021 |
---|---|
0.1.2 | Feb 9, 2021 |
0.1.1 | Feb 9, 2021 |
0.1.0 |
|
#239 in Internationalization (i18n)
275KB
463 lines
ktorrent
scraping korean torrent sites.
example
use reqwest;
use reqwest::header::USER_AGENT;
use ktorrent::Document;
use ktorrent::find_child_attr_by_tag;
fn main() {
let url = "https://torrentsir31.com/bbs/board.php?bo_table=movie&wr_id=15846";
let client = reqwest::blocking::Client::new();
let res = client.get(url)
.header(USER_AGENT, "Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_0)")
.send().unwrap();
let doc = Document::from_read(res).unwrap();
let result = find_child_attr_by_tag(
&doc,
"list-group",
"a",
"href"
);
assert_eq!("magnet:?xt=urn:btih:dac87e714c3adf0fe073236ef32acafb6931ae63", result[1]);
}
status
No | site | url | status |
---|---|---|---|
1 | ttobogo | https://ttobogo.net | O |
2 | torrentube | https://torrentube.to | O |
3 | tshare | https://tshare.org | O |
4 | torrentmobile | https://torrentmobile15.com | O |
5 | torrentview | https://torrentview28.com | O |
6 | torrentsir | https://torrentsir31.com | O |
7 | torrentj | https://torrentj32.com | O |
8 | torrentqq | https://torrentqq73.com | O |
9 | torrenttip | https://torrenttip19.com | O |
10 | torrentstory | https://torrentstory13.com | O |
11 | torrentmax | https://torrentmax15.com | O |
12 | torrentplay | https://torrentplay10.com | O |
13 | torrentsome | https://torrentsome1.com | O |
14 | jujutorrent | https://jujutorrent28.com | O |
Dependencies
~2–7.5MB
~53K SLoC