How can I simulate onclick event in python?

I am working on a small project where I have to submit a form to a website. However, the website uses the event onclickto submit the form (using javascript).

  • How can simulate an event onclickin python?

  • What modules can be used? I heard about modules seleniumand mechanize. But which module can be used, or in the case of both, which one is better?

I am new to web cleaning and automation. So that would be very helpful.

Thanks in advance.

+4
source share
2 answers

onclick - . , .

, :

mechanize / onclick, onclick javascript, mechanize .

+3

.

, , - , - .

, "" " ". xhr GET/POST. POST- 90% .

, , , . Bingo!!

, , python . Wooshh!!

, .

+3

All Articles