How would I implement a web search in my app, that searches eBay for example, from a user input?
Asked
Active
Viewed 114 times
-4
-
please try to be specific about what you want to ask. – Rohit Rawat Oct 28 '19 at 16:08
1 Answers
-1
Something like this:
- Put an
editText
to capture user input - Figure out how the ebay URL works, (Eg. for Google,
https://www.google.com/search?q=[Your-keyword-here]
can get you to the search result of your keyword) - Load the URL in a
webView
There you go!
Edit:
This might work for Ebay:
https://www.ebay.com/sch/i.html?_nkw=[Your-keyword-here]

Wilson Sim
- 513
- 1
- 5
- 15
-
yeah, that's what I was thinking too, seems like that's the easiest way. Would you know of any way of only showing afew select products from the list, instead of the entire webpage? – KSS Oct 28 '19 at 17:43
-
Maybe you can check out Ebay's developer API :D This might be what you are looking for: https://developer.ebay.com/api-docs/static/rest-request-components.html – Wilson Sim Oct 29 '19 at 11:19