Skip to content

daite/ktorrent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

scraping korean torrent sites

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages