[Tutor] HTTP Request to simulate the interactions with the web application
Alan Gauld
alan.gauld at yahoo.co.uk
Thu Dec 28 17:22:54 EST 2023
On 28/12/2023 07:00, Asad wrote:
> I am planning to automate a daily task on a App . The objective is
> build a python script to Configure the HTTP Request to simulate the
> interactions with the web application.
I can't offer much here because its so long since I did
this kind of thing that my knowledge is mostly no longer
relevant.
However, I would point out that it's worth checking that
the site doesn't offer an API because those that do often
actively try to stop screen scraping - for example they
randomly add invisible elements to the page, change
the names of components, move them slightly on screen etc.
This is to prevent the server being overloaded by
robotic actions. Some also explicitly ban scraping
and will blacklist any IP address found to be
so-doing.
A Restful API will make life much easier for you as a
programmer and make the server much more responsive
for normal users.
If you decide you still need to go that route you
mentioned Selenium and that's the current best
practice for that task.I think there's a support
forum/list on the Selenium site that can probably help
you out.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos
More information about the Tutor
mailing list