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
| """ | |
| gather and delete all node_modules from specified folders | |
| node_modules是个坑,定时删除一下挺好的。 | |
| 删除之前需要列出来看看有没有误删的,比如vscode里面插件的node_modules应该不能删除。 | |
| zhlin 2020-04-22 | |
| """ | |
| import os | |
| import shutil | |
| import sys | |
| import time |
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
| ''' | |
| Usage: python archive_articles.py test.csv | |
| Input: test.csv | |
| name url | |
| 1 url1 | |
| 2 url2 | |
| ..... | |
| output: | |
| 1.png | |
| 2.png |
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
| # see also https://github.com/wrobstory/pgshift | |
| import gzip | |
| from io import StringIO, BytesIO | |
| from functools import wraps | |
| import boto | |
| from sqlalchemy import MetaData | |
| from pandas import DataFrame | |
| from pandas.io.sql import SQLTable, pandasSQL_builder |