d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Javascript Webscraper Task: 500fg > Scrape Javascript Fiddles
Add Reply New Topic New Poll
Member
Posts: 14,925
Joined: Jan 3 2008
Gold: 135,879.75
Oct 13 2019 07:30pm
Use javascript/nodejs to create 2 folders of text documents.

First Folder:
Each .txt document contains: a HTML section, a CSS section, a JS section.

Second Folder:
Each text document has 3 variations: HTML.txt, CSS.txt, JS.txt

These text documents should come from the link: https://jsfiddle.net/user/INSERT_RANDOM_USER/fiddles/

Document Specific Instructions:

* Each document contains at the very top: The URL link from where it was retrieved.
__________________________________________________________________

Example: https://jsfiddle.net/user/RANDOM_TOM/fiddles/ has 3 fiddles A, B, and C.

Folder 1
A.txt
B.txt
C.txt

Folder 2
A-html.txt
A-css.txt
A-js.txt
B-html.txt
B-css.txt
B-js.txt
C-html.txt
C-css.txt
C-js.txt

Member
Posts: 6,676
Joined: Jul 7 2007
Gold: 2,879.25
Oct 19 2019 05:54am
The part I don't understand here is why you would save the files as .txt rather than .html because .html files are indeed just .txt files.

Do you need just the output, or do you want the entire program? PM me to discuss this further.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll