Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
v0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ybm911 committed May 6, 2022
1 parent b29acbc commit 79b8a72
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/ArchimondeXueXi.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
作者:Elli0t
2022.04.07
更新于2022.05.06
如要运行需要修改三处代码
"""
import requests
import time
import random
import re
import json


courseUrl = "http://osscache.vol.jxmfkj.com/html/assets/js/course_data.js"
Expand All @@ -25,8 +25,8 @@
'Referer': 'http://osscache.vol.jxmfkj.com/html/h5_index.html'
}
responseCourse = requests.request("GET", courseUrl, headers=headers)
pattern = re.search(r'[0-9]', responseCourse.text)
courseNumber = pattern.group(0)
courseNumber = json.loads("{" + responseCourse.text.split("{")[2].split("}")[0] + "}")['id']
# print(courseNumber)



Expand All @@ -41,4 +41,4 @@
response = requests.request("POST", url, headers=headers, data=payload)
print(peopleNumber)
print(response.text)
time.sleep( random.randint(1,10) )
time.sleep( random.randint(1,10) )

0 comments on commit 79b8a72

Please sign in to comment.