2018-06-04から1日間の記事一覧

scrapy で localhost サーバーのリソースをスクレイピングして parse 結果を json ファイルに出力する

他人のサーバーでテストすることは憚られる 環境 Mac OSX - 10.13.4 Python - 3.6.5 nginx - 1.12.2 scrapy - 1.5.0 localhost サーバー workspace ディレクトリ直下の index.html を改変しておく。 /path/to/nginx/workspace/index.html <html> <head> <style type="text/css"> #caption { colo</style></head></html>…