apilayer / scrapestack

Real-Time Proxy & Web Scraping API
https://scrapestack.com
23 stars 7 forks source link

How should we pass URL having query parameters? #2

Open chiragshah0312 opened 3 years ago

chiragshah0312 commented 3 years ago

Edit - example URL is https://www.amazon.com/s?k=Mobile+Pixels+Duex+Pro+-+Upgraded+2.0+Portable+Monitor+for+Laptops+-+12.5%22+Full+HD+USB+Screen+Plug+and+Play

To send it to superstack i converted it into http://api.scrapestack.com/scrape?access_key=1234&url=https://www.amazon.com/s?k=Mobile+Pixels+Duex+Pro+-+Upgraded+2.0+Portable+Monitor+for+Laptops+-+12.5%22+Full+HD+USB+Screen+Plug+and+Play&ref=nb_sb_noss&keep_headers=1

But it's giving me error b'{"error":{"code":"validation_error","status":422,"context":[{"url":{"type":"invalid_url","message":"The url is not valid"}}]}}'

chiragshah0312 commented 3 years ago

this is also not working 'http://api.scrapestack.com/scrape?access_key=1234&url=https://www.amazon.com/s?k=Mobile+phone'