Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:sget [2025/03/14 11:35] – darron | projects:sget [2025/03/14 12:39] (current) – [Install] darron | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====Selenium get==== | ||
+ | |||
+ | This is a simple tool to fetch a page using selenium and allow | ||
+ | access to its wait parameters. | ||
+ | |||
+ | ===Install=== | ||
+ | |||
+ | < | ||
+ | sudo apt install python3-full mercurial | ||
+ | hg clone https:// | ||
+ | cd sget | ||
+ | </ | ||
+ | |||
+ | [[https:// | ||
===Demo=== | ===Demo=== | ||
+ | This web page loads a page of temporary content and after a delay it will reload. | ||
+ | |||
+ | The reloaded content contains a subset of the full content and requires scrolling to | ||
+ | reveal it all. | ||
+ | |||
+ | Fetch the temporary page | ||
< | < | ||
py sget.py " | py sget.py " | ||
+ | </ | ||
+ | |||
+ | Fetch the reloaded page | ||
+ | < | ||
py sget.py " | py sget.py " | ||
</ | </ | ||
+ | Compare temporary and reloaded | ||
< | < | ||
diff d0.html d10.html | head -30 | diff d0.html d10.html | head -30 | ||
Line 40: | Line 65: | ||
</ | </ | ||
+ | Fetch the page again but this time wait for the reloaded content based on tag attribute | ||
< | < | ||
- | py sget.py " | + | py sget.py " |
</ | </ | ||
+ |