Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @app.route("/scrape/<input>")
- def test(input):
- print(input)
- x = input.title
- return x
- function scrape(input){
- // send input to python
- var url = `/scrape/${input}`;
- d3.json(url).then(function(data){
- console.log(data); //should be title
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement