Home > other >  Please help to do js automatically attack
Please help to do js automatically attack

Time:10-05

If inscribe
Please help to do the inside of the js automatically attack, do click automatically,
O!

CodePudding user response:

Using selenium library

CodePudding user response:

The element selenium access to and click operation into the loop line

CodePudding user response:

reference 1st floor LJDargon response:
using selenium library

Won't! Please direct help, I really can't

CodePudding user response:

refer to the second floor iam_ylw response:
the selenium in the access to and operation of element and click on the circle line

Not, please direct help, thank you requested

CodePudding user response:

# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

# configuration after Chrome or PhantomJS
# 1. Import the selenium
The from the selenium import webdriver

# 2. Instantiate the webdriver object and sends the request
Driver=webdriver. PhantomJS/Chrome instantiated () #
Driver. The get (" to send the request url ")

# 3. Circulation click access object
For each range in (number) : # cyclic behavior
Find_element_by_css/xpath/.. (a). Click () #
click behavior
# 4. Subsequent logic behavior

# 5. Exit
Driver. The quit ()

# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
# above is probably thinking, specific what to do to see your actual function

CodePudding user response:

The
reference 5 floor iam_ylw response:
# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

# configuration after Chrome or PhantomJS
# 1. Import the selenium
The from the selenium import webdriver

# 2. Instantiate the webdriver object and sends the request
Driver=webdriver. PhantomJS/Chrome instantiated () #
Driver. The get (" to send the request url ")

# 3. Circulation click access object
For each range in (number) : # cyclic behavior
Find_element_by_css/xpath/.. (a). Click () #
click behavior
# 4. Subsequent logic behavior

# 5. Exit
Driver. The quit ()

# -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
# above is probably thinking, specific what to do to see your actual function

Thank you thank you, I do js for the first time a little won't, don't understand
  • Related