#finder #parse #gleam

gleam_finder

A very small crate you can use to get gleam.io links

20 releases (4 breaking)

0.5.3 Jul 17, 2020
0.5.0 Apr 16, 2020
0.2.9 Jan 18, 2020
0.2.5 Dec 26, 2019
0.2.1 Nov 8, 2019
Download history 20/week @ 2021-01-01 20/week @ 2021-01-15 3/week @ 2021-01-22 1/week @ 2021-01-29 11/week @ 2021-02-05 130/week @ 2021-02-12 20/week @ 2021-02-19 2/week @ 2021-02-26 51/week @ 2021-03-19 40/week @ 2021-03-26 20/week @ 2021-04-02

69 downloads per month

MIT license

18KB
332 lines

gleam_finder

This crate contains tools you can use to get gleam giveaways links.

You can search google for every web page referring gleam.io in the last hour with google::search(). After you got these links, you can load the pages and parse the description to get gleam.io links with youtube::resolve(). You can parse a gleam.io page with the Giveaway struct.

Examples

use gleam_finder::*;

for page in 0..4 {
    for link in google::search(page).unwrap() {
        println!("resolving {}", link);
        for gleam_link in intermediary::resolve(&link).unwrap() {
            println!("gleam link found: {}", gleam_link);
        }
    }
}

License: MIT


lib.rs:

This crate contains tools you can use to get gleam giveaways links.

You can search google for every web page referring gleam.io in the last hour with google::search().
After you got these links, you can load the pages and parse the description to get gleam.io links with youtube::resolve().
You can parse a gleam.io page with the Giveaway struct.

Examples

use gleam_finder::*;

for page in 0..4 {
    for link in google::search(page).unwrap() {
        println!("resolving {}", link);
        for gleam_link in intermediary::resolve(&link).unwrap() {
            println!("gleam link found: {}", gleam_link);
        }
    }
}

Dependencies

~0.6–1MB
~20K SLoC