| Crates.io | google-somethin |
| lib.rs | google-somethin |
| version | 0.1.4 |
| created_at | 2018-11-03 12:05:15.074326+00 |
| updated_at | 2018-11-05 07:01:25.977679+00 |
| description | A simple library that grabs Google search results... |
| homepage | |
| repository | https://github.com/GitStonic/google-somethin |
| max_upload_size | |
| id | 94495 |
| size | 5,077 |
A simple library that grabs Google search results...
Insert this in Cargo.toml
[dependencies]
google-somethin = "0.1"
And this in your main file
extern crate google_somethin;
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);
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!