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
6a1d7980
Commit
6a1d7980
authored
Apr 24, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
dfe6a960
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
8 deletions
+6
-8
get_session.py
injection/data_sync/get_session.py
+3
-5
guanshui.txt
injection/data_sync/guanshui.txt
+0
-0
majia_email.txt
injection/data_sync/majia_email.txt
+0
-0
get_session.py
majia/get_session.py
+3
-3
No files found.
injection/data_sync/get_session.py
View file @
6a1d7980
...
@@ -24,11 +24,9 @@ auto_follow_url = "http://earth.igengmei.com/api/v1/follow"
...
@@ -24,11 +24,9 @@ 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/physical/
majia
/majia_email.txt"
)
data
=
open
(
"/srv/apps/physical/
injection/data_sync
/majia_email.txt"
)
list
=
[]
list
=
[]
for
i
in
data
:
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
strip
(
','
))
list
.
append
(
i
.
strip
(
'
\n
'
)
.
strip
(
','
))
...
@@ -43,7 +41,7 @@ def get_majia():
...
@@ -43,7 +41,7 @@ def get_majia():
def
get_cookies
(
user_id
):
def
get_cookies
(
user_id
):
try
:
try
:
with
open
(
"/srv/apps/
physical/majia
/user_session.txt"
,
'r'
)
as
f
:
with
open
(
"/srv/apps/
cybertron
/user_session.txt"
,
'r'
)
as
f
:
try
:
try
:
data
=
f
.
readlines
()
data
=
f
.
readlines
()
except
:
except
:
...
@@ -125,7 +123,7 @@ def time_conv(minutest):
...
@@ -125,7 +123,7 @@ def time_conv(minutest):
def
get_comments
():
def
get_comments
():
try
:
try
:
data
=
open
(
"/srv/apps/physical/
majia
/guanshui.txt"
,
"r"
)
data
=
open
(
"/srv/apps/physical/
injection/data_sync
/guanshui.txt"
,
"r"
)
list_guanshui
=
[]
list_guanshui
=
[]
for
i
in
data
:
for
i
in
data
:
list_guanshui
.
append
(
i
)
list_guanshui
.
append
(
i
)
...
...
injection/data_sync/
migrations/
guanshui.txt
→
injection/data_sync/guanshui.txt
View file @
6a1d7980
File moved
injection/data_sync/majia_email.txt
0 → 100644
View file @
6a1d7980
This diff is collapsed.
Click to expand it.
majia/get_session.py
View file @
6a1d7980
...
@@ -26,7 +26,7 @@ auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge"
...
@@ -26,7 +26,7 @@ auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge"
def
get_majia
():
def
get_majia
():
try
:
try
:
data
=
open
(
"/srv/apps/
physical/majia
/majia_email.txt"
)
data
=
open
(
"/srv/apps/
cybertron
/majia_email.txt"
)
list
=
[]
list
=
[]
for
i
in
data
:
for
i
in
data
:
list
.
append
(
i
.
strip
(
'
\n
'
)
.
strip
(
','
))
list
.
append
(
i
.
strip
(
'
\n
'
)
.
strip
(
','
))
...
@@ -41,7 +41,7 @@ def get_majia():
...
@@ -41,7 +41,7 @@ def get_majia():
def
get_cookies
(
user_id
):
def
get_cookies
(
user_id
):
try
:
try
:
with
open
(
"/srv/apps/
physical/majia
/user_session.txt"
,
'r'
)
as
f
:
with
open
(
"/srv/apps/
cybertron
/user_session.txt"
,
'r'
)
as
f
:
try
:
try
:
data
=
f
.
readlines
()
data
=
f
.
readlines
()
except
:
except
:
...
@@ -123,7 +123,7 @@ def time_conv(minutest):
...
@@ -123,7 +123,7 @@ def time_conv(minutest):
def
get_comments
():
def
get_comments
():
try
:
try
:
data
=
open
(
"/srv/apps/
physical/majia
/guanshui.txt"
,
"r"
)
data
=
open
(
"/srv/apps/
cybertron
/guanshui.txt"
,
"r"
)
list_guanshui
=
[]
list_guanshui
=
[]
for
i
in
data
:
for
i
in
data
:
list_guanshui
.
append
(
i
)
list_guanshui
.
append
(
i
)
...
...
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