shell脚本

1
2
3
4
5
6
7
python3 -c "
import requests;
from bs4 import BeautifulSoup;
url = input('请输入题目网址');
return_data = requests.get(url, verify=True);
soup = BeautifulSoup(str(return_data.text), 'html.parser');
print(str(soup.find_all('div', 'ttypography')[0]).replace('src=\"', 'src=\"https://codeforces.com').replace(r'$$$', r'$'))"