Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
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
钟尚武
physical
Commits
37817fcd
Commit
37817fcd
authored
Apr 22, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
fc9f31a4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
__init__.py
majia/__init__.py
+2
-0
auto_instant_click.py
majia/auto_instant_click.py
+2
-2
get_session.py
majia/get_session.py
+14
-1
No files found.
majia/__init__.py
View file @
37817fcd
from
.get_session
import
*
\ No newline at end of file
majia/auto_instant_click.py
View file @
37817fcd
...
@@ -6,8 +6,8 @@ import threading
...
@@ -6,8 +6,8 @@ import threading
import
traceback
import
traceback
import
logging
import
logging
from
django.conf
import
settings
from
django.conf
import
settings
from
get_session
import
get_comments
,
get_cookies
,
click
,
time_conv
,
login
,
reply
from
majia
import
get_comments
,
get_cookies
,
click
,
time_conv
,
login
,
reply
from
get_session
import
host
,
user
,
passwd
,
db
from
majia
import
host
,
user
,
passwd
,
db
@shared_task
@shared_task
def
auto_click
(
pk_list
):
def
auto_click
(
pk_list
):
...
...
majia/get_session.py
View file @
37817fcd
...
@@ -3,13 +3,26 @@ import time
...
@@ -3,13 +3,26 @@ import time
import
datetime
import
datetime
import
random
import
random
import
traceback
import
traceback
from
django.conf
import
settings
DATABASES
=
settings
.
DATABASES
host
=
DATABASES
[
'default'
][
'HOST'
]
user
=
DATABASES
[
'default'
][
'USER'
]
port
=
DATABASES
[
'default'
][
'PORT'
]
db
=
DATABASES
[
'default'
][
'NAME'
]
passwd
=
DATABASES
[
'default'
][
'PASSWORD'
]
auto_click_url
=
"http://earth.igengmei.com/api/v1/like"
auto_click_url
=
"http://earth.igengmei.com/api/v1/like"
auto_reply_url
=
"http://earth.igengmei.com/api/v1/reply/create"
auto_reply_url
=
"http://earth.igengmei.com/api/v1/reply/create"
auto_follow_url
=
"http://earth.igengmei.com/api/v1/follow"
auto_follow_url
=
"http://earth.igengmei.com/api/v1/follow"
auto_urge_url
=
"http://earth.igengmei.com/api/v1/user/urge"
auto_urge_url
=
"http://earth.igengmei.com/api/v1/user/urge"
def
get_majia
():
def
get_majia
():
try
:
try
:
data
=
open
(
"/srv/apps/cybertron/majia_email.txt"
)
data
=
open
(
"/srv/apps/cybertron/majia_email.txt"
)
...
@@ -62,7 +75,7 @@ def login():
...
@@ -62,7 +75,7 @@ def login():
return
None
return
None
def
click
(
cookies_get
,
id
):
def
click
(
cookies_get
,
id
):
try
:
try
:
post_dict
=
{
post_dict
=
{
'type'
:
0
,
'type'
:
0
,
...
...
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