javascript - How to use website search bar function in code -
while user can type in search term in onsite search bar directly, how can same thing in code, when there no known api? want know whether macy's carry "baby shoes", how in code? suggestions great!
it sounds want like: http://docs.seleniumhq.org/
it lets automate browser behavior, entering text search bar , clicking search.
if service interested in has no api, way go, might considered rude (or against site's terms of use), , wouldn't surprised if script gets blocked search provider. if expect running searches in kind of appreciable volume, should contact search provider , talk them use case. maybe can provide api.
since question tagged javascript, might http://thechangelog.com/soda-selenium-node-js-adapter/ , node adapter selenium.
Comments
Post a Comment