Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cybertron
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpha
cybertron
Commits
bc1af3dc
Commit
bc1af3dc
authored
Dec 04, 2018
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hh
parent
ce8050dc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
workspace.xml
.idea/workspace.xml
+0
-0
auto_commnet.py
auto_commnet.py
+6
-5
No files found.
.idea/workspace.xml
View file @
bc1af3dc
This diff is collapsed.
Click to expand it.
auto_commnet.py
View file @
bc1af3dc
...
...
@@ -25,15 +25,16 @@ def index_first():
def
login
(
cookies
,
user
,
pwd
):
post_dict
=
{
'account_type'
:
user
,
'pwd'
:
pwd
'account_type'
:
2
,
'pwd'
:
pwd
,
'email'
:
user
}
response
=
requests
.
post
(
response
=
requests
.
post
(
url
=
login_url
,
data
=
post_dict
,
cookies
=
cookies
)
# print(response.text,
'url')
print
(
response
.
text
,
'url'
)
def
reply
(
cookies_get
,
id
,
content
):
...
...
@@ -64,7 +65,7 @@ def get_data(numtime):
cursor
.
execute
(
"SELECT id FROM topic WHERE create_time LIKE '
%%%%%
s
%%%%
' "
%
numtime
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
#
print("Database version : %s " % user_id)
print
(
"Database version :
%
s "
%
user_id
)
db
.
close
()
return
user_id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment