how to search from one site on the second? (javascript)

2472 views javascript
-2

I have a problem. I want from my site, to search for camps from another site. How can I implement this in JS ? Parsing ??? https://www.recreation.gov/ (Here is the search engine from site that i want to parse )

Sorry my English is bad)

answered question

Hello Welcome to StackOverflow, This question does not provide enough information always try to provide some information related to what you tried so far with some of your code and share where are you stuck. Help people to help you. also have a look at: stackoverflow.com/tour

1 Answer

3

  1. You should send POST request to URL https://www.recreation.gov/unifSearch.do width a variable locationCriteria set as your search keyword (I took the information from form of a website you mentioned).
  2. Return the result.
  3. Parse the result to extract data you need.

posted this

Have an answer?

JD

Please login first before posting an answer.