| INFO PROPERTY | VALUE |
|---|---|
| Program Name | APP: Screenshot Website |
| File Name | README.md |
| Date Created | 08/06/24 |
| Date Modified | -- |
| Version | 00.01.00 |
| Programmer | Eric Hepperle |
VSCODE: scrape-weather.js, ourWeather.json:
JavaScript Async-Await Playwright Coding Scraping
Screenshot each page of a website remotely/automatically using PlayWright and node.js.
- Playwright: enables reliable end-to-end testing for modern web apps
- NodeJS: Node.js lets developers use JavaScript to write command line tools and for server-side scripting
- Type
nodethen the name of the script:
node scrape-weather.js
node my-browser-script.jsNotes are located in ./notes/main.md
- https://www.youtube.com/watch?v=tLU4GZHZBYk&t=14s&ab_channel=LearnWebCode
- https://www.simonsmith.io/destructuring-objects-as-function-parameters-in-es6
- https://mariusschulz.com/blog/typing-destructured-object-parameters-in-typescript
- https://chatgpt.com/c/5e133a65-6dc8-4465-85ee-51f77726bc64
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#object_destructuring
- https://dev.to/michaelburrows/get-the-domain-name-from-a-string-containing-a-url-in-javascript-3c67
- https://stackoverflow.com/questions/511761/js-function-to-get-filename-from-url

