Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
inscription-trade-py
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
inscription-trade-py
Commits
a13b4b2c
Commit
a13b4b2c
authored
Jul 04, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6c302952
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
config/env.example.py
+3
-0
duneInscription.py
+4
-0
No files found.
config/env.example.py
View file @
a13b4b2c
...
@@ -9,3 +9,6 @@ task_api = ''
...
@@ -9,3 +9,6 @@ task_api = ''
# redis
# redis
redis_host
=
'127.0.0.1'
redis_host
=
'127.0.0.1'
redis_password
=
''
redis_password
=
''
# 浏览器位置
binary_location
=
r''
duneInscription.py
View file @
a13b4b2c
...
@@ -3,6 +3,7 @@ import time
...
@@ -3,6 +3,7 @@ import time
from
selenium
import
webdriver
from
selenium
import
webdriver
from
Helper
import
RedisCon
from
Helper
import
RedisCon
import
random
import
random
from
config.env
import
binary_location
class
Dune
:
class
Dune
:
...
@@ -131,6 +132,9 @@ class Dune:
...
@@ -131,6 +132,9 @@ class Dune:
"user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
)
"user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
)
options
.
add_argument
(
'window-size=1920x1080'
)
options
.
add_argument
(
'window-size=1920x1080'
)
# /www/wwwroot/inscription-trade-py/chromedriver.exe
if
binary_location
:
options
.
binary_location
=
binary_location
driver
=
webdriver
.
Chrome
(
options
=
options
)
driver
=
webdriver
.
Chrome
(
options
=
options
)
# 控制浏览器访问url地址
# 控制浏览器访问url地址
...
...
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