Grab a bunch of css battle solutions from online and consolidate them into a single file
- populate a Json file with all urls of online solutions
- download those urls which should contain a table of contents for each individual solution
- parse the downloaded contents and extract the exact urls for each solution
- download all individual solutions
- parse solution files for the exact html and css solution data
- consolidate each of the different solution into a single file, markdown could be a good final format
CSSBattlesolution.com does not store the code solutions in the html on the website.
- Grab the data from the linked gist file
- All code is saved in github gists. Raw data in a gist looks like this
- This data can be retrieved via an api but the results are truncated (See docs)
- Could download the github search result's html and scrape them (messy and may be against TOS)
- All code is saved in github gists. Raw data in a gist looks like this
- try a browser simulator like selenium may make the imbedded gists files be included in the downloaded local HTML files