d2jsp
d2jsp Forums > Programmer's Haven > Javascript Webscraper Task: 500fg > Scrape Javascript Fiddles
Add Reply New Topic New Poll
kdog3682
#1 Oct 13 2019 07:30pm
Group: Member
Posts: 14,901
Joined: Jan 3 2008
Gold: 143,779.75
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

Virtuous
#2 Oct 19 2019 05:54am
Group: Member
Posts: 3,736
Joined: Jul 7 2007
Gold: 1,028.00
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 Programmer's Haven Topic List
Add Reply New Topic New Poll