Skip to content

Instantly share code, notes, and snippets.

@extensionsapp
Created October 21, 2018 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save extensionsapp/f3adf79800127f86ea78dd8c8d029e21 to your computer and use it in GitHub Desktop.
Save extensionsapp/f3adf79800127f86ea78dd8c8d029e21 to your computer and use it in GitHub Desktop.
Create theme for CinemaPress ACMS
// npm init -y && npm i website-scraper
const scrape = require('website-scraper');
scrape({
urls: [
'https://',
{url: 'https://', filename: 'movie.html'},
{url: 'https://', filename: 'category.html'},
{url: 'https://', filename: 'categories.html'}
],
directory: './nichosee',
request: {
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0'
}
},
subdirectories: [
{directory: 'images', extensions: ['.jpg', '.png', '.gif', '.jpeg']},
{directory: 'js', extensions: ['.js']},
{directory: 'css', extensions: ['.css']},
{directory: 'founts', extensions: ['.svg', '.eot', '.ttf', '.woff', '.woff2']}
]
}, (error, result) => {
console.log(error, result);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment