android - How to use user input to search a website through an app -


i want make app asks user input , it'll search website , have display results.

i know i'm gonna have web scraping make app display results thing i'm stuck on how searching. want if user using search function on website itself. example, if user types app's search bar "chairs", app show wikipedia's results "chairs"

using wikipedia example, it's straight forwards. send request wikipedia site, , return correct page. requests use parameters appended end of url, take

en.wikipedia.org/w/index.php?search=

and append query chairs , http://en.wikipedia.org/w/index.php?search=chairs

with wikipedia, need replace spaces + symbol. if wanted search musical chairs, be

en.wikipedia.org/w/index.php?search=musical+chairs

the url different each site, should easy find if @ html, or looking @ url in browser after search on site


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -