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
b3f67937
Commit
b3f67937
authored
Apr 22, 2019
by
Kai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of git.wanmeizhensuo.com:alpha/physical into test
parents
dff45917
37817fcd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
52 additions
and
11 deletions
+52
-11
.gitignore
.gitignore
+4
-0
Project.xml
.idea/codeStyles/Project.xml
+25
-0
misc.xml
.idea/misc.xml
+1
-1
physical.iml
.idea/physical.iml
+1
-1
__init__.py
majia/__init__.py
+2
-0
auto_instant_click.py
majia/auto_instant_click.py
+5
-8
get_session.py
majia/get_session.py
+14
-1
No files found.
.gitignore
View file @
b3f67937
...
...
@@ -83,3 +83,6 @@ gaia/rpcd.json
*.swp
dbmw_deploy/config.dir/
.idea/codeStyles/Project.xml
.idea/misc.xml
.idea/physical.iml
\ No newline at end of file
.idea/codeStyles/Project.xml
View file @
b3f67937
...
...
@@ -24,5 +24,29 @@
<option
name=
"ITERATION_ELEMENTS_WRAPPING"
value=
"chop_down_if_not_single"
/>
</formatting-settings>
</DBN-SQL>
<DBN-PSQL>
<case-options
enabled=
"false"
>
<option
name=
"KEYWORD_CASE"
value=
"lower"
/>
<option
name=
"FUNCTION_CASE"
value=
"lower"
/>
<option
name=
"PARAMETER_CASE"
value=
"lower"
/>
<option
name=
"DATATYPE_CASE"
value=
"lower"
/>
<option
name=
"OBJECT_CASE"
value=
"preserve"
/>
</case-options>
<formatting-settings
enabled=
"false"
/>
</DBN-PSQL>
<DBN-SQL>
<case-options
enabled=
"false"
>
<option
name=
"KEYWORD_CASE"
value=
"lower"
/>
<option
name=
"FUNCTION_CASE"
value=
"lower"
/>
<option
name=
"PARAMETER_CASE"
value=
"lower"
/>
<option
name=
"DATATYPE_CASE"
value=
"lower"
/>
<option
name=
"OBJECT_CASE"
value=
"preserve"
/>
</case-options>
<formatting-settings
enabled=
"false"
>
<option
name=
"STATEMENT_SPACING"
value=
"one_line"
/>
<option
name=
"CLAUSE_CHOP_DOWN"
value=
"chop_down_if_statement_long"
/>
<option
name=
"ITERATION_ELEMENTS_WRAPPING"
value=
"chop_down_if_not_single"
/>
</formatting-settings>
</DBN-SQL>
</code_scheme>
</component>
\ No newline at end of file
.idea/misc.xml
View file @
b3f67937
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.6 (
physical1
)"
project-jdk-type=
"Python SDK"
/>
<component
name=
"ProjectRootManager"
version=
"2"
project-jdk-name=
"Python 3.6 (
venv
)"
project-jdk-type=
"Python SDK"
/>
<component
name=
"PyCharmProfessionalAdvertiser"
>
<option
name=
"shown"
value=
"true"
/>
</component>
...
...
.idea/physical.iml
View file @
b3f67937
...
...
@@ -2,7 +2,7 @@
<module
type=
"PYTHON_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<content
url=
"file://$MODULE_DIR$"
/>
<orderEntry
type=
"jdk"
jdkName=
"Python 3.6 (
physical1
)"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"jdk"
jdkName=
"Python 3.6 (
venv
)"
jdkType=
"Python SDK"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
<component
name=
"TestRunnerService"
>
...
...
majia/__init__.py
View file @
b3f67937
from
.get_session
import
*
\ No newline at end of file
majia/auto_instant_click.py
View file @
b3f67937
# -*- coding: UTF-8 -*-
import
requests
import
time
import
datetime
import
pymysql
import
random
import
pandas
as
pd
import
threading
import
traceback
from
log_settings
import
*
import
logging
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
majia
import
host
,
user
,
passwd
,
db
@shared_task
def
auto_click
(
pk_list
):
...
...
@@ -49,7 +46,7 @@ def auto_click(pk_list):
timer
.
start
()
sleep_time
=
random
.
randint
(
300
,
540
)
timer
=
threading
.
Timer
(
10
,
fun_
comment
)
# 首次启动
timer
=
threading
.
Timer
(
10
,
fun_
timer
)
# 首次启动
timer
.
start
()
sleep_time
=
random
.
randint
(
300
,
540
)
...
...
majia/get_session.py
View file @
b3f67937
...
...
@@ -3,13 +3,26 @@ import time
import
datetime
import
random
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_reply_url
=
"http://earth.igengmei.com/api/v1/reply/create"
auto_follow_url
=
"http://earth.igengmei.com/api/v1/follow"
auto_urge_url
=
"http://earth.igengmei.com/api/v1/user/urge"
def
get_majia
():
try
:
data
=
open
(
"/srv/apps/cybertron/majia_email.txt"
)
...
...
@@ -62,7 +75,7 @@ def login():
return
None
def
click
(
cookies_get
,
id
):
def
click
(
cookies_get
,
id
):
try
:
post_dict
=
{
'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