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
| # imports | |
| import sys | |
| import os | |
| import subprocess | |
| # agrument passing / var init | |
| newDir = sys.argv[1] # new directory | |
| type = sys.argv[2] # type / wp downloads dutch core | |
| os.chdir('VVV/www') |
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
| # scrapy crawl content -o content_output.json | |
| import scrapy | |
| import logging | |
| import re | |
| bodyClass = "body.blog-detail" | |
| class ContentsSpider(scrapy.Spider): | |
| name = "content" |