Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
D
dingding-cookie-uploader
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Leon Li
dingding-cookie-uploader
Commits
3ca68ace
Commit
3ca68ace
authored
Feb 12, 2020
by
l2m2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload.
parent
f057c675
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
5 deletions
+18
-5
.gitignore
.gitignore
+1
-2
README.md
installer/README.md
+10
-1
qrcode.png
qrcode.png
+0
-0
dingding-cookie-uploader.py
src/dingding-cookie-uploader.py
+7
-2
No files found.
.gitignore
View file @
3ca68ace
...
@@ -129,4 +129,3 @@ dmypy.json
...
@@ -129,4 +129,3 @@ dmypy.json
.pyre/
.pyre/
qrcode.png
qrcode.png
dirty_demo.py
\ No newline at end of file
installer/README.md
View file @
3ca68ace
...
@@ -18,6 +18,15 @@ pyinstaller -F --icon=uploader.ico dingding-cookie-uploader.py
...
@@ -18,6 +18,15 @@ pyinstaller -F --icon=uploader.ico dingding-cookie-uploader.py
pip install --upgrade 'setuptools<45.0.0'
pip install --upgrade 'setuptools<45.0.0'
```
```
-
Processes stuck in loop with PyInstaller-executable
```
You need to use multiprocessing.freeze_support() when you produce a Windows executable with PyInstaller.
```
-
TypeError: cafile, capath and cadata cannot be all omitted
## Reference
## Reference
-
https://github.com/pypa/setuptools/issues/1963
-
https://github.com/pypa/setuptools/issues/1963
-
-
https://stackoverflow.com/questions/57517371/matplotlibdeprecationwarning-with-pyinstaller-exe
\ No newline at end of file
-
https://stackoverflow.com/questions/54065079/processes-stuck-in-loop-with-pyinstaller-executable
\ No newline at end of file
qrcode.png
deleted
100644 → 0
View file @
f057c675
973 Bytes
src/dingding-cookie-uploader.py
View file @
3ca68ace
from
dingdinghelper
import
DingDingHelper
from
dingdinghelper
import
DingDingHelper
import
requests
import
requests
import
ctypes
import
ctypes
from
multiprocessing
import
Process
,
freeze_support
def
Mbox
(
title
,
text
,
style
):
def
Mbox
(
title
,
text
,
style
):
return
ctypes
.
windll
.
user32
.
MessageBoxW
(
0
,
text
,
title
,
style
)
return
ctypes
.
windll
.
user32
.
MessageBoxW
(
0
,
text
,
title
,
style
)
if
__name__
==
"__main__"
:
def
f
()
:
ding
=
DingDingHelper
()
ding
=
DingDingHelper
()
ding
.
renew_cookie
()
ding
.
renew_cookie
()
r
=
requests
.
post
(
"http://139.196.104.13:9181/api/_/dingding/setCookie"
,
json
=
{
"cookie"
:
ding
.
cookie
})
r
=
requests
.
post
(
"http://139.196.104.13:9181/api/_/dingding/setCookie"
,
json
=
{
"cookie"
:
ding
.
cookie
})
...
@@ -13,3 +14,7 @@ if __name__ == "__main__":
...
@@ -13,3 +14,7 @@ if __name__ == "__main__":
Mbox
(
'提示'
,
'上传成功!'
,
0
)
Mbox
(
'提示'
,
'上传成功!'
,
0
)
else
:
else
:
Mbox
(
'提示'
,
'上传失败!'
,
0
)
Mbox
(
'提示'
,
'上传失败!'
,
0
)
if
__name__
==
"__main__"
:
freeze_support
()
Process
(
target
=
f
)
.
start
()
\ No newline at end of file
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