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
| [一:100行Python代码快速获得一个代理池,两分钟获得数千个有效代理](https://github.com/0xHJK/Proxies) | |
| [二:小说下载|小说爬取|起点|笔趣阁|导出Markdown|导出txt|转换epub|广告过滤|自动校对](https://github.com/ma6254/FictionDown) |
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
| 在各种浏览器打开的任意页面上使用F12功能键,即可使用开发者工具,在窗口console标签下,键入 "document.charset" 即可查看网页的编码方式。 |
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
| 命令很简单,新建个bat文件,将之前三条命令copy过来就完事,关键是怎么保证每条命令都执行,在网上查了下,说可以用&&连接,试了下,还是只执行了第一条命令,后来组长调了下,将bat文件改为 start 命令1 start 命令2......的格式 就成功了。 | |
| 据了解,是因为我此次执行的命令是三个没有关联的命令,直接start就行了,网上查的用&,&&,||连接的情况适用于多条有关联的命令一起执行的情况,如下: | |
| 命令1 & 命令2 & 命令3 ... (无论前面命令是否故障,照样执行后面) | |
| 命令1 && 命令2 && 命令3....(仅当前面命令成功时,才执行后面) | |
| 命令1 || 命令2 || 命令3.... (仅当前面命令失败时.才执行后面) | |
| && 和 || 属于逻辑运算符号 |
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
| ```python | |
| ''' | |
| 第一个 | |
| ''' | |
| import os | |
| import re | |
| import time | |
| import json | |
| import argparse | |
| import requests |
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
| ```python | |
| import re | |
| import requests | |
| from requests import RequestException | |
| import time | |
| import random | |
| def get_page(url): | |
| try: |
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
| ```python | |
| # coding:utf-8 | |
| import shutil | |
| a=0 | |
| readDir = "F:\\ipt.txt" #old | |
| writeDir = "F:\\ipt1.txt" #new | |
| # txtDir = "/home/fuxueping/Desktop/1" | |
| lines_seen = set() | |
| outfile = open(writeDir, "w", encoding='UTF-8') | |
| f = open(readDir, "r", encoding='UTF-8') |
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
| ::: hljs-center | |
| **PT自动签到** | |
| ::: | |
| 已比较棘手的天空为例,脚本python写的,自行搭建环境,下面代码。 | |
| ```#coding=utf-8 | |
| import os | |
| import re |
NewerOlder