Sinisterly
Python request help - Printable Version

+- Sinisterly (https://sinister.ly)
+-- Forum: Coding (https://sinister.ly/Forum-Coding)
+--- Forum: Python (https://sinister.ly/Forum-Python)
+--- Thread: Python request help (/Thread-Python-request-help)



Python request help - D0R3K - 04-21-2019

How to add python request click web button.
Thanks!


RE: Python request help - slothic - 04-21-2019

Code:
from splinter import Browser                 with Browser() as browser:  browser.visit(url)  browser.fill('textbox', 'your text here')  browser.find_by_name('Submit').click()  copied_text = browser.find_by_id('results')[0].text



RE: Python request help - D0R3K - 04-21-2019

(04-21-2019, 03:44 PM)slothic Wrote:
Code:
from splinter import Browser                 with Browser() as browser:  browser.visit(url)  browser.fill('textbox', 'your text here')  browser.find_by_name('Submit').click()  copied_text = browser.find_by_id('results')[0].text

Thanks!


RE: Python request help - darkninja1980 - 04-21-2019

(04-21-2019, 03:44 PM)slothic Wrote:
Code:
from splinter import Browser                 with Browser() as browser:  browser.visit(url)  browser.fill('textbox', 'your text here')  browser.find_by_name('Submit').click()  copied_text = browser.find_by_id('results')[0].text

nice looking code.


RE: Python request help - slothic - 04-21-2019

(04-21-2019, 07:14 PM)darkninja1980 Wrote:
(04-21-2019, 03:44 PM)slothic Wrote:
Code:
from splinter import Browser                 with Browser() as browser:  browser.visit(url)  browser.fill('textbox', 'your text here')  browser.find_by_name('Submit').click()  copied_text = browser.find_by_id('results')[0].text

nice looking code.

Stole it from somewhere.


RE: Python request help - darkninja1980 - 04-21-2019

(04-21-2019, 07:58 PM)slothic Wrote:
(04-21-2019, 07:14 PM)darkninja1980 Wrote:
(04-21-2019, 03:44 PM)slothic Wrote:
Code:
from splinter import Browser                 with Browser() as browser:  browser.visit(url)  browser.fill('textbox', 'your text here')  browser.find_by_name('Submit').click()  copied_text = browser.find_by_id('results')[0].text

nice looking code.

Stole it from somewhere.

What website?


RE: Python request help - slothic - 04-21-2019

(04-21-2019, 07:59 PM)darkninja1980 Wrote:
(04-21-2019, 07:58 PM)slothic Wrote:
(04-21-2019, 07:14 PM)darkninja1980 Wrote: nice looking code.

Stole it from somewhere.

What website?

No clue, cant remeber. You just have to search up the problem and either find parts and combine them or other people have the same problem and you can just CTRL+C and then CTRL+v


RE: Python request help - darkninja1980 - 04-21-2019

(04-21-2019, 08:04 PM)slothic Wrote:
(04-21-2019, 07:59 PM)darkninja1980 Wrote:
(04-21-2019, 07:58 PM)slothic Wrote: Stole it from somewhere.

What website?

No clue, cant remeber. You just have to search up the problem and either find parts and combine them or other people have the same problem and you can just CTRL+C and then CTRL+v

oh okay. Wink