R
R
Roman Rakzin2016-01-17 00:51:53
PHP
Roman Rakzin, 2016-01-17 00:51:53

Javascript or php parser for POST forms with the same url?

There is a site from which you need to parse data.
The URL is always constant, but the data is different. Depends on the cookie and POST request - ie. the form is submitted and new data is received at the same url.
I have never worked with parsers, but here is an even more complex example.
Tell me, how can I extract data from such sites using javascript or php?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
samizdam, 2016-01-17
@samizdam

PHP is suitable for this task.
I advise you to look towards Guzzle for sending POST + Cookies. Either framework.zend.com/manual/current/en/modules/zend....
Parse - depending on the format of the response data. If this is html / xml, then the tools built into the language for working with Dom or Xml - php.net to help. Or regulars.

X
xmoonlight, 2016-01-17
@xmoonlight

CURL + Regex = Profit!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question