How to find and click automatically based on the specific url in html in the bash script [closed]
How to find and click automatically based on the specific url in html in the bash script [closed]
I want to when the bash script executes the open url in Firefox and then continues by searching for the specific url and clicking it automatically. how to work?
#!/bin/bash
while read line; do
firefox --private-window "$line" & 2>/dev/null
sleep 40
killall firefox
done < blash
especially in the bash script loop. thankyou
illustration: when firefox opens the url at http:// aaaaa.com in the
html website there is a http:// bbbbb.com url and the bash script
automatically searches and clicks it
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
1 Answer
1
This will not work this way. You want to:
a) Use cURL and request the initial URL, parse the output so you can find the second URL, send a POST/GET request to it.
b) Use something like Selenium to automate this process.
ok thanks for information
– Link Network
Aug 21 at 19:14