Crates.io | ktorrent |
lib.rs | ktorrent |
version | 0.2.0 |
source | src |
created_at | 2021-02-09 06:08:08.514384 |
updated_at | 2021-02-09 14:30:26.11662 |
description | ktorrent crate is only for scraping korean torrent sites |
homepage | https://daite.github.io |
repository | https://github.com/daite |
max_upload_size | |
id | 352616 |
size | 1,874,967 |
scraping korean torrent sites.
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]);
}
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 |