0
Hello, I’m having trouble making a code that I have in mind. It would be as follows.
I have a website that talks about the buses of my city and I am developing a code in php
looking for air buses and placing the line/route he is on.
To search the buses see on the website http://www.mobilibus.com/web/detalhes-linha/5w71c that’s from my town.
They do the bus requests by http://www.mobilibus.com/web/refresh-vehicle-in-route in the method post
.
looking through the browser network the variables I will use are:
routeId :"000" ////Line/route
vehicleId:"0000" ////Bus prefix
vehicleLabel:"Terminal " ///Direction the bus is going
project:"5w71c" /////indicates that the project is from my city
How do I create a code that searches all bus lines/routes I set? Scanning all lines/routes. For example:
If you want to find the vehicle 1308 write in the table " Vehicle 1308 is on the line 000"
Please help me!
Welcome, have you tried something ? In order to help you, you must at least have tried to make some code and then come and tell us what your problem or doubt is. Read the [tour] to learn how the site works, and go to [help] for help on the site.
– NoobSaibot
How can I pull variables through the url?
– Ônibus CG ms
It would help to know which http client they are using, I would recommend using Guzzle. An example of HTTP request also helped you set the request payload.
– Gil Sousa
What I want to do is a code that sees line by line looking for the bus that I set
– Ônibus CG ms