Skip to content

Instantly share code, notes, and snippets.

View zhaoloving's full-sized avatar

zhaoloving zhaoloving

View GitHub Profile
import requests
from bs4 import BeautifulSoup
import re
from random import randint
from time import sleep
import json
# https://curlconverter.com/
# https://bj.lianjia.com/chengjiao/
cookies = {
@zhaoloving
zhaoloving / .Cloud.md
Created May 5, 2023 01:23 — forked from imba-tjd/.Cloud.md
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合

@zhaoloving
zhaoloving / gdrive_download.sh
Created July 4, 2019 06:54 — forked from guysmoilov/gdrive_download.sh
Bash script to download large zip files from google drive while confirming the virus scan warning
#!/bin/sh
# Usage: gdrive_download 123-abc ./output.zip
function gdrive_download () {
CONFIRM=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate "https://drive.google.com/uc?export=download&id=$1" -O- | sed -En 's/.*confirm=([0-9A-Za-z_]+).*/\1/p')
wget --load-cookies /tmp/cookies.txt "https://drive.google.com/uc?export=download&confirm=$CONFIRM&id=$1" -O $2
rm -f /tmp/cookies.txt
}
#include<iostream>
using namespace std;