Automate process - Robot?

Asked

Viewed 659 times

1

There is a php page where I have to make several queries. That page is not I who administer and I have no information about your source code.

What is done on this page: A value is entered in an input and expected return with the information I need. (a normal POST, right?)

What I need: As there are several queries, I wanted something to automate this process. A type of a robot that performed these queries and stored the result in any external file (txt, csv). I would like this robot to take the value that has to be typed in this field in a list of data that I have and delete or just mark as "done" as you refer to this value.

Researching found something on CURL. Would it work in this case? Does anyone have any idea how to do something like this?

  • 3

    And what have you done? This site is not a forum, but a site of questions and objective answers. Your question is wide open because you’re basically asking someone to do it for you. It has many aspects related, not only the automated execution of the post (see this example question: http://answall.com/q/45142/73) but also the possible need to "circumvent" a CAPTCHA (see this other example question: http://answall.com/q/11757/73).

  • 2

    I suggest [Dit] the question to make it more specific in a problem you find in your development process (for example: how to get the answer to a POST done to any address). And also do the [tour] and read the [help].

  • So, not to be rude, but I didn’t ask you to write a script. I presented the process I have to do to reach the goal that is the result of the post with the information. Is not a question site? So, I’m asking if anyone has any idea how I can do this. Are there any number of ways to solve this? There are also several ways to answer someone who is having trouble with source code, for example. But come on, what is your suggestion? Create a macro? I didn’t know macro, now I’m going to search about it. It wasn’t easier just to have talked: search about macro?

  • No need to circumvent CAPTCHA. Thank you for the link in the first comment.

  • Don’t worry, it wasn’t rude. : ) Yes, this is a question site lenses, that is, they may receive an equally objective response. Yahoo Answers is also a Q and A site, but very different from this and closer to a forum. I think people will have a lot of ideas on how to do what you want, but how I argued is a very broad problem to be answered in the format that this site proposes (at least in one question). In fact, CAPTCHA was just one example. There are other relevant aspects that are still in the broad scope of the question.

  • Okay, thank you. I will seek other means to achieve a solution.

  • 1

    Hey, they’re strictly boring with this, it’s to keep the community level. Forums aren’t getting very well picked up, because they’re full of silly questions that you don’t understand. I think this question is not wide, it has a focus.

  • 1

    What the boy said above about CAPTCHAS was that if there are questions on the form (How much is 1+2 + 4/5? or images to type (such as the boards CAPTCHA uses), or buttons to click.. Anyway, all these things are to stop robots from working the way you want them to.. if there is this type if "security" will be difficult or almost impossible to make your robot work, because they do not possess enough artificial intelligence to "see" the image, or interpret the equation.. Are there shapes? Yes, but they’re complex and they’re still crawling...

  • 1

    IF you don’t have this type of security the most viable option (I know) in the PHP language is Curl, Voce will use it to enter the site and fill in the inputs and submit.. and so Oce will create your robot.. If you have any doubts call me, I reply.

  • Thank you. At first access has a login but that is no security at all (captcha). After that it is just an input and press the query button (also without security). With this CURL it is possible to go through these barriers and copy the information that comes from the POST?

  • 2

    Sorry for the delay in answering, if you do not mark the user ( @USERNAME) he is not notified. Yes, look at these explanations, http://davidwalsh.name/curl-post, http://blog.thiagobelem.net/login-automaticco-em-php-usando-curl/

  • Thanks @user3163662. I didn’t know Curl until then. I’m moving this discussion to another question, since this one was left as a pending. If you can take a look: http://answall.com/questions/76674/php-curl-sess%C3%A3o-terminated

Show 7 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.