How to navigate a webpage with python [closed] - python

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I was made a python script for bruteforce (pen test) but before the bruteforce start, I need to go through some links clicking and login, so I want to do those stuff with python. Basically when I start that script it should login and click some links then start the bruteforce.
so, is there any way I can make my python script to do those basic stuff for me?

You might want to check these:
mechanize
Selenium
Spidermonkey
webkit
These tools will help you to emulate browser via script.

Related

Selenium python click on button dont work [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
[] In the photo you can see two buttons SING UP which is where the web opens by default as soon as you load it and the one I want to click LOGIN, the site is full of Java and I know that solving this problem will help me later, hopefully someone can help me, I would appreciate it a million 1
To simply click the a href tag with the LOGIN text.
driver.find_element_by_xpath("a[text()='LOGIN']").click()

Executing shell/ssh commands via web app [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I would like to run commands on my home server via a web app. Is there a way to do this?
I have no interest in returning the output, I just want to execute commands like irsend when a button is pressed on the page.
You can't execute commands directly from the browser, that is why child_process.exec() does not work when browserify your code.
You will need to send an HTTP request of some kind to the server and have it run the command there instead (using child_process.exec()/child_process.spawn()).

How to generate preview of a url on HTML form using Python? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
When I posted a news link on Facebook, it generated a preview by its own fetching the details from the url.
Does anybody know what kind of technology or scripting language is used to do this or how it can be done? If anyone can guide me or point me to the direction how can I achieve this using Python on a simple HTML form.
How it can be achieved on simple HTML forms using python scirpt?
Thank you in advance.

How to login to site using python's mechanize library? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I want to login to my router's site - http://192.168.0.1 and then I want to reboot my router. Is this possible? If it is how do I do it?
Someone already answered no, but offered no alternatives. You can try using Telnetlib, or if you must do it through the web UI, use Selenium

wxPython. How to open a folder with wxWidget (python) hyperlink? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to create a hyperlink in my wx widget which opens linked folder on clicking. Please help me how to build that.
Thanks.
os.system("start C:")
will launch a file window (on windows at least) ... it has nothing to do with wx
unless you are talking about opening a FilePickerDialog?
I have also been informed that
os.system("explorer C:")
would also work

Categories