Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  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. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement