Re: HTTP Request to simulate the interactions with the web application
Alan Gauld via Tutor <[email protected]> Thu, 28 Dec 2023 22:22:54 +0000
| Newsgroups | gmane.comp.python.tutor |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor