2

I am working on a web-scraping project. I am using Browser from mechanize in python. I need to call a JavaScript function with two arguments. The arguments are known.

    __doPostBack(arg1,arg2)

How do i call this function from Python?

4
  • Mechanize currently doesn't support Javascript. Commented Jun 11, 2013 at 17:36
  • what should i use then? Commented Jun 11, 2013 at 17:39
  • Can't you print out javascript in a <script> with pyton, and concatenate the variables you need into the function's params? Commented Jun 11, 2013 at 18:20
  • 1
    RK Poddar: stackoverflow.com/questions/802225/… Commented Jun 11, 2013 at 18:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.