-
-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:MontFerret/ferret
- Loading branch information
Showing
58 changed files
with
2,745 additions
and
1,498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
LET doc = DOCUMENT("https://github.com/", { driver: "cdp" }) | ||
LET doc = DOCUMENT("https://www.montferret.dev/", { driver: "cdp" }) | ||
|
||
HOVER(doc, ".HeaderMenu-details") | ||
CLICK(doc, ".HeaderMenu a") | ||
CLICK(doc, "#repl") | ||
|
||
WAIT_NAVIGATION(doc) | ||
WAIT_ELEMENT(doc, 'main nav') | ||
WAITFOR EVENT "navigation" IN doc | ||
WAIT_ELEMENT(doc, '.code-editor-text') | ||
|
||
FOR el IN ELEMENTS(doc, 'main nav a') | ||
RETURN TRIM(el.innerText) | ||
RETURN doc.url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
LET doc = DOCUMENT('https://www.theverge.com/tech', { | ||
driver: "cdp" | ||
driver: "cdp", | ||
ignore: { | ||
resources: [ | ||
{ | ||
url: "*", | ||
type: "image" | ||
} | ||
] | ||
} | ||
}) | ||
|
||
WAIT_ELEMENT(doc, '.c-compact-river__entry', 5000) | ||
LET articles = ELEMENTS(doc, '.c-entry-box--compact__image-wrapper') | ||
LET links = ( | ||
FOR article IN articles | ||
FILTER article.attributes?.href LIKE 'https://www.theverge.com/*' | ||
RETURN article.attributes.href | ||
) | ||
|
||
FOR link IN links | ||
// The Verge has pretty heavy pages, so let's increase the navigation wait time | ||
NAVIGATE(doc, link, 20000) | ||
WAIT_ELEMENT(doc, '.c-entry-content', 5000) | ||
WAIT_ELEMENT(doc, '.c-entry-content', 15000) | ||
LET texter = ELEMENT(doc, '.c-entry-content') | ||
RETURN texter.innerText |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ LET p = DOCUMENT("https://www.gettyimages.com/", { | |
} | ||
}) | ||
|
||
RETURN NONE | ||
RETURN TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,6 @@ CLICK(song) | |
WAIT_ELEMENT(doc, ".l-listen-hero") | ||
|
||
RETURN { | ||
page: page.url, | ||
current: page.url, | ||
first: doc.url | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.