Home  >  Q&A  >  body text

python - How to get information for a website without API?

If you want to make a website, the user enters query information on the website, and the background automatically inputs the information to the target website, and then obtains the query results of the target website and returns them to the user.

Since the target website does not have an API, how can I implement this function? Ask for advice! thank you all

某草草某草草2710 days ago815

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-05-18 10:57:13

    You mean submitting the form on the target page, right? Without an API, you have to analyze the form content yourself, and then submit it yourself according to that template.

    reply
    0
  • 淡淡烟草味

    淡淡烟草味2017-05-18 10:57:13

    Can you write a crawler? Your requirement is to simulate a post form after getting the user's input. This requires you to capture packets and see what parameters the website you need to submit needs to submit. Some websites have anti-crawler and anti-automated robot measures.

    reply
    0
  • Cancelreply