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:23] – 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=== | ||
+ | |||
+ | 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 | ||
+ | 9c9 | ||
+ | < CbDD - lade e8a3bf28-6365-42fe-a4d3-41608ed870e8 | ||
+ | --- | ||
+ | > CbDD - Abtsgmünd, Gartenpavillon Schloss Hohenstadt [Text] | ||
+ | 50, | ||
+ | < < | ||
+ | < <div class=" | ||
+ | < </ | ||
+ | < <div class=" | ||
+ | < lade Daten ... | ||
+ | --- | ||
+ | > < | ||
+ | > <div class=" | ||
+ | > < | ||
+ | > <div class=" | ||
+ | > < | ||
+ | > <div> | ||
+ | > <a href="/ | ||
+ | > < | ||
+ | > QR Code | ||
+ | > </ | ||
+ | > <span class=" | ||
+ | > <i class=" | ||
+ | > arrow_drop_down | ||
+ | > </ | ||
+ | > </ | ||
+ | > </ | ||
+ | > </ | ||
+ | > </ | ||
+ | > < | ||
+ | </ | ||
+ | |||
+ | Fetch the page again but this time wait for the reloaded content based on tag attribute | ||
+ | < | ||
+ | py sget.py " | ||
+ | </ | ||
+ |