Created
October 21, 2018 22:44
-
-
Save extensionsapp/f3adf79800127f86ea78dd8c8d029e21 to your computer and use it in GitHub Desktop.
Create theme for CinemaPress ACMS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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