Skip to content

Instantly share code, notes, and snippets.

View and2long's full-sized avatar
🏠
Working from home

Lilong Zhang and2long

🏠
Working from home
View GitHub Profile
@and2long
and2long / youtube-dl.md
Created May 23, 2019 03:44 — forked from ryanlid/youtube-dl.md
youtube-dl 下载设置代理

socks5代理

youtube-dl --proxy socks5://127.0.0.1:1080 https://www.youtube.com/watch?v=6_gLU_OStK0

http代理

youtube-dl --proxy http://127.0.0.1:8118 https://www.youtube.com/watch?v=6_gLU_OStK0
#!/usr/bin/env python
import os
def uninstall():
os.popen("adb wait-for-device")
print("start uninstall...")
for packages in os.popen("adb shell pm list packages -3").readlines():
packageName = packages.split(":")[-1].splitlines()[0]
os.popen("adb uninstall " + packageName)
@and2long
and2long / scrapy_mzitu_detail.py
Created November 25, 2018 11:34
get all the images on the home page of mzitu.
# -*- coding: utf-8 -*-
import os
import time
import re
import scrapy
class DetailSpider(scrapy.Spider):
name = 'detail'
allowed_domains = ['mzitu.com', 'i.meizitu.net']