All Projects → yunqiang-sun → get_LibSeat

yunqiang-sun / get_LibSeat

Licence: Apache-2.0 license
利昂图书馆预约系统自动预约&签到程序。支持包括中国人民大学、北京师范大学、济南大学、哈尔滨工业大学等在内的38所高校的图书馆系统

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to get LibSeat

Tieba-Birthday-Spider
百度贴吧生日爬虫,可抓取贴吧内吧友生日,并且在对应日期自动发送祝福
Stars: ✭ 28 (-28.21%)
Mutual labels:  spider, requests
python-fxxk-spider
收集各种免费的 Python 爬虫项目
Stars: ✭ 184 (+371.79%)
Mutual labels:  spider, requests
Halive
A fast http and https prober, to check which URLs are alive
Stars: ✭ 47 (+20.51%)
Mutual labels:  https, requests
ProxyGrab
Asynchronous Library made using Python and aiohttp to get proxies from multiple services!
Stars: ✭ 17 (-56.41%)
Mutual labels:  https, requests
Reptile
🏀 Python3 网络爬虫实战(部分含详细教程)猫眼 腾讯视频 豆瓣 研招网 微博 笔趣阁小说 百度热点 B站 CSDN 网易云阅读 阿里文学 百度股票 今日头条 微信公众号 网易云音乐 拉勾 有道 unsplash 实习僧 汽车之家 英雄联盟盒子 大众点评 链家 LPL赛程 台风 梦幻西游、阴阳师藏宝阁 天气 牛客网 百度文库 睡前故事 知乎 Wish
Stars: ✭ 1,048 (+2587.18%)
Mutual labels:  spider, requests
Libhv
🔥 比libevent、libuv更易用的国产网络库。A c/c++ network library for developing TCP/UDP/SSL/HTTP/WebSocket client/server.
Stars: ✭ 3,355 (+8502.56%)
Mutual labels:  https, requests
weibo topic
微博话题关键词,个人微博采集, 微博博文一键删除 selenium获取cookie,requests处理
Stars: ✭ 28 (-28.21%)
Mutual labels:  spider, requests
weibo invalid delete
一键清除失效微博转发/微博收藏爬虫 (Auto delete invalid Weibo Favorites)
Stars: ✭ 16 (-58.97%)
Mutual labels:  spider, automatic
Bilili
🍻 bilibili video (including bangumi) and danmaku downloader | B站视频(含番剧)、弹幕下载器
Stars: ✭ 379 (+871.79%)
Mutual labels:  spider, requests
Webspider
在线地址: http://119.23.223.90:8000
Stars: ✭ 340 (+771.79%)
Mutual labels:  spider, requests
Decryptlogin
APIs for loginning some websites by using requests.
Stars: ✭ 1,861 (+4671.79%)
Mutual labels:  spider, requests
Bilibili member crawler
B站用户爬虫 好耶~是爬虫
Stars: ✭ 115 (+194.87%)
Mutual labels:  spider, requests
Scrapingoutsourcing
ScrapingOutsourcing专注分享爬虫代码 尽量每周更新一个
Stars: ✭ 164 (+320.51%)
Mutual labels:  spider, requests
RRQMSocket
TouchSocket是.Net(包括 C# 、VB.Net、F#)的一个整合性的、超轻量级的网络通信框架。包含了 tcp、udp、ssl、http、websocket、rpc、jsonrpc、webapi、xmlrpc等一系列的通信模块。一键式解决 TCP 黏分包问题,udp大数据包分片组合问题等。使用协议模板,可快速实现「固定包头」、「固定长度」、「区间字符」等一系列的数据报文解析。
Stars: ✭ 286 (+633.33%)
Mutual labels:  https
detect-cloudflare-plus
True Sight Firefox extension.
Stars: ✭ 34 (-12.82%)
Mutual labels:  https
bangumi yearly report
No description or website provided.
Stars: ✭ 24 (-38.46%)
Mutual labels:  spider
HttpProxy
JAVA实现的IP代理池,支持HTTP与HTTPS两种方式
Stars: ✭ 37 (-5.13%)
Mutual labels:  https
MoMo
利用墨墨背单词的分享功能拿每日20个的单词上限奖励(多线程
Stars: ✭ 45 (+15.38%)
Mutual labels:  spider
TeslaPy
A Python module to use the Tesla Motors Owner API
Stars: ✭ 216 (+453.85%)
Mutual labels:  requests
build-a-space
Automatically add community documentation to your repository
Stars: ✭ 18 (-53.85%)
Mutual labels:  automatic

依赖项

r = requests.get('http://127.0.0.1/newinfo.json') 该行是读取数据文件, newinfo.json 中存放的是账号、密码、座位id、预约时间等数据, 我是将 json 文件放在本地服务器的 web 路径下了, 你也可以直接用普通读文件方法或者将这些数据放到数据库中读取

整个程序很简短, 只是使用 requests 包来发送 HTTP(s) 请求

What's this?

基于 Python 的利昂图书馆预约系统自动签到&预约程序。可支持自动预约、自动签到 (可外网签到-利用 X-Forwarded-For 字段)

Get Started

git clone https://github.com/yunqiang-sun/get_LibSeat
cd get_LibSeat
python newSeatCrawler.py ## 预约,json是配置文件,放账号密码预约座位号时间等信息
python newCheckIn.py ## 签到

Tips

使用 crontab 设置定时任务, 另外要注意学校服务器时间与你所用的服务器的微小时间差, 如果你设置的预约时间为 5:00 则有可能学校服务器的时间还没有到, 此时预约可能会失败, 可以在代码中加入 try.. except.. 做异常处理

性能

现在每天有很多程序在抢座, 甚至出现了多个程序抢同一个座位, 早晨如果要加快预约速度, 首先服务器的网络速度要快(使用 ping 命令测试), 这是最重要的因素. 其次应去掉程序中的所有 IO 操作, 另外可以在 5:00 预约开始前提前发送 get 请求获取 token, 将token 放到 redis 中, 预约开始后直接从 redis 读取

School List

No SchoolName
01 济南大学
02 中国人民大学
03 哈尔滨工业大学
04 武汉大学
05 天津大学
06 同济大学
07 首都医科大学
08 合肥工业大学
09 安徽工程大学
10 辽宁大学
11 北京联合大学
12 闽南师范大学
13 华中农业大学
14 聊城大学
15 沈阳大学
16 燕山大学
17 宁波工程学院
18 辽宁师范大学
19 河南工业大学
20 河南财经政法大学
21 对外经济贸易大学
22 广东外语外贸大学
23 武汉音乐学院
24 华东政法大学
25 福州大学
26 华南农业大学
27 陕西师范大学
28 南华大学
30 厦门理工学院
31 首都师范大学
32 阜阳师范大学
33 江苏医药职业学院
34 中华女子学院
35 广西大学
36 河南理工大学
37 常州大学
38 河南牧业经济学院
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].