linux - Click button using curl -
i need fetch contact number url, may using curl.
sample link- https://www.olx.pl/oferta/philips-sluchawki-bezprzewodowe-shc5100-cid99-idier3w.html#188a0d656b
contact number button in on right hand side & value hidden. once click on it, value shows up. there no onclick event on button. please let me know.
you can combination of curl, sed , grep command outputs.
here example:
wget -q -o - $(echo http://www.olx.pl/ajax/misc/contact/phone/$(curl -s https://www.olx.pl/oferta/philips-sluchawki-bezprzewodowe-shc5100-cid99-idier3w.html#188a0d656b | grep link-phone | egrep -oh \'id\'\:\'\\s+\' | tail -n 1 | sed -e s/\'id\'\://g | sed -e s/\'//g))
Comments
Post a Comment