Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
cd43e9df
Commit
cd43e9df
authored
Oct 06, 2023
by
wangmingming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
请求造纸
parent
45905c7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
20 deletions
+32
-20
jetblue.py
b6/src/jetblue.py
+19
-7
src.js
b6/src/src.js
+13
-13
No files found.
b6/src/jetblue.py
View file @
cd43e9df
...
@@ -25,12 +25,12 @@ def md5(text):
...
@@ -25,12 +25,12 @@ def md5(text):
client
=
MongoClient
(
'mongodb://lcc-spider:JIUsfhiad&^@18.144.59.80:27017/?authSource=admin&directConnection=true'
)
client
=
MongoClient
(
'mongodb://lcc-spider:JIUsfhiad&^@18.144.59.80:27017/?authSource=admin&directConnection=true'
)
db
=
client
.
env
db
=
client
.
env
# 查询所有文档
# 查询所有文档
#
if platform.uname().system != 'Darwin':
if
platform
.
uname
()
.
system
!=
'Darwin'
:
result
=
db
.
env_shape
.
find
({
'env.funcs'
:{
'$ne'
:
None
},
'success'
:
{
'$gte'
:
30
}})
result
=
db
.
env_shape
.
find
({
'env.funcs'
:{
'$ne'
:
None
},
'success'
:
{
'$gte'
:
30
}})
data
=
{
str
(
x
[
'_id'
]):
x
[
'env'
]
for
x
in
result
}
data
=
{
str
(
x
[
'_id'
]):
x
[
'env'
]
for
x
in
result
}
print
(
result
)
print
(
result
)
with
open
(
'env.json'
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
with
open
(
'env.json'
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
f
.
write
(
json
.
dumps
(
data
))
f
.
write
(
json
.
dumps
(
data
))
with
open
(
'env.json'
,
'r'
,
encoding
=
'utf-8'
)
as
f
:
with
open
(
'env.json'
,
'r'
,
encoding
=
'utf-8'
)
as
f
:
data
=
json
.
loads
(
f
.
read
())
data
=
json
.
loads
(
f
.
read
())
...
@@ -112,7 +112,19 @@ while True:
...
@@ -112,7 +112,19 @@ while True:
})
})
code
=
open
(
'src.js'
,
'r'
,
encoding
=
'utf-8'
)
.
read
()
code
=
open
(
'src.js'
,
'r'
,
encoding
=
'utf-8'
)
.
read
()
with
open
(
'src_run1.js'
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
with
open
(
'src_run1.js'
,
'w'
,
encoding
=
'utf-8'
)
as
f
:
f
.
write
(
code
+
'
\n\n
'
+
c
)
f
.
write
(
code
+
'
\n\n
'
+
c
+
';;;
\n\n
'
+
'''
if (randomEvent){
window.mouse_move(startx,starty,endx,endy)
}
var xhr = new XMLHttpRequest();
xhr.open('POST', "https://jbrest.jetblue.com/lfs-rwb/outboundLFS", false);
xhr.send(`{
\"
tripType
\"
:
\"
oneWay
\"
,
\"
from
\"
:
\"
ZLA
\"
,
\"
to
\"
:
\"
NAS
\"
,
\"
depart
\"
:
\"
2023-04-11
\"
,
\"
cabin
\"
:
\"
economy
\"
,
\"
refundable
\"
:false,
\"
dates
\"
:{
\"
before
\"
:
\"
3
\"
,
\"
after
\"
:
\"
3
\"
},
\"
pax
\"
:{
\"
ADT
\"
:1,
\"
CHD
\"
:0,
\"
INF
\"
:0,
\"
UNN
\"
:0},
\"
redempoint
\"
:false,
\"
pointsBreakup
\"
:{
\"
option
\"
:
\"\"
,
\"
value
\"
:0},
\"
isMultiCity
\"
:false}`)
xhr.setRequestHeader('user-agent', ENV.navigatorparams.useragent)
print(JSON.stringify(xhr.headers))
_process.exit(0)
'''
)
# # with open('js_dom_run1.js', 'w', encoding='utf-8') as f:
# # with open('js_dom_run1.js', 'w', encoding='utf-8') as f:
# # f.write(code1 + '\n\n' + c)`
# # f.write(code1 + '\n\n' + c)`
t1
=
time
.
time
()
t1
=
time
.
time
()
...
...
b6/src/src.js
View file @
cd43e9df
No preview for this file type
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