简体   繁体   中英

How to run actions in a fake-browser on the server side?

I need to simulate a user session (login, click, click, enter data) followed by an html page download on the server side.

What are my options, if any?

Python-requests was my first thought, but it can't run javascript--which is why I need to simulate a fake google-chrome/firefox session on the server side.

If you don't mind working in C#, WatiN ( http://watin.org/ ) sounds like it's the type of tool you're looking for. I've used it to log into websites, navigate, etc.

You can reference this StackOverflow for downloading the HTML source: How to get complete html content using WatiN properties

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM