ktorrent

Crates.ioktorrent
lib.rsktorrent
version0.2.0
sourcesrc
created_at2021-02-09 06:08:08.514384
updated_at2021-02-09 14:30:26.11662
descriptionktorrent crate is only for scraping korean torrent sites
homepagehttps://daite.github.io
repositoryhttps://github.com/daite
max_upload_size
id352616
size1,874,967
(daite)

documentation

https://docs.rs/ktorrent

README

build Build Status crates.io docs

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
Commit count: 0

cargo fmt