SHARE
TWEET

Untitled

a guest Jun 19th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @app.route("/scrape/<input>")
  2. def test(input):
  3.     print(input)
  4.     x = input.title
  5.     return x
  6.      
  7. function scrape(input){
  8.     // send input to python
  9.     var url = `/scrape/${input}`;
  10.     d3.json(url).then(function(data){
  11.         console.log(data); //should be title
  12.     });
  13. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top