#google-search #google #search #scraper

google-somethin

A simple library that grabs Google search results

5 releases

0.1.4 Nov 5, 2018
0.1.3 Nov 4, 2018
0.1.2 Nov 3, 2018
0.1.1 Nov 3, 2018
0.1.0 Nov 3, 2018

#11 in #google-search

MIT license

6KB
84 lines

google-somethin

A simple library that grabs Google search results...

google-signin on crates.io google-signin on docs.rs Build Status

Usage

Insert this in Cargo.toml

[dependencies]
google-somethin = "0.1"

And this in your main file

extern crate google_somethin;

Basic usage

First import the crate and method as shown below.

extern crate google_somethin;
use google_somethin::google;

Now query!

let results = google("roblox", None);
// Should return results of links and titles.
println!("Roblox results! {:?}", results);

Reminders

Just to verify again Section to those who was wondering is only a struct with keys of title and link.

Section {
    title: String,
    link: String,
} 

That's basically it!

Dependencies

~22MB
~484K SLoC