Bladeren bron

using local file for testing

jmelesky 7 jaren geleden
bovenliggende
commit
fa35a0fa97
2 gewijzigde bestanden met toevoegingen van 20 en 3 verwijderingen
  1. 14 0
      assets/feats.html
  2. 6 3
      src/main.rs

File diff suppressed because it is too large
+ 14 - 0
assets/feats.html


+ 6 - 3
src/main.rs

@@ -11,10 +11,13 @@ fn main() {
 
 fn scrape_feats(url: &str) {
 
-    let resp = reqwest::get(url).unwrap();
-    assert!(resp.status().is_success());
+    // commenting out -- going local for a bit
+    //let resp = reqwest::get(url).unwrap();
+    //assert!(resp.status().is_success());
 
-    let doc = Document::from_read(resp).unwrap();
+    //let doc = Document::from_read(resp).unwrap();
+
+    let doc = Document::from(include_str!("/home/jmelesky/code/featscraper/assets/feats.html"));
 
     let mut header = true;
     for node in doc.find(Name("tr")) {

Some files were not shown because too many files changed in this diff