-4

How would I implement a web search in my app, that searches eBay for example, from a user input?

touhid udoy
  • 4,005
  • 2
  • 18
  • 31
KSS
  • 1
  • 3

1 Answers1

-1

Something like this:

  1. Put an editText to capture user input
  2. 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)
  3. 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