Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
shadowban-eu-backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
shadowban-eu-backend
Commits
fb5b016f
Commit
fb5b016f
authored
Feb 02, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use fixed graphql endpoints
parent
230a6deb
Pipeline
#19882
passed with stages
in 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
backend_requests.py
backend_requests.py
+8
-3
No files found.
backend_requests.py
View file @
fb5b016f
...
...
@@ -33,7 +33,10 @@ if privateKey:
twitterKeys
=
[
privateKey
]
print
(
"Booting"
)
ENDPOINT
=
endpoint
()
ENDPOINT
=
{
"UserTweetsAndReplies"
:
"CwLU7qTfeu0doqhSr6tW4A"
,
"TweetDetail"
:
"BoHLKeBvibdYDiJON1oqTg"
,
}
print
(
"Booted"
)
FeaturesDict
=
{
...
...
@@ -307,9 +310,10 @@ def searchban(screen_name):
"withReactionsPerspective"
:
False
,
"withSuperFollowsTweetFields"
:
False
,
"withVoice"
:
False
,
"withV2Timeline"
:
False
,
}
get_reply_param
=
param
=
{
"variables"
:
json
.
dumps
(
get_reply_vars
),
"features"
:
FeaturesJson
}
replies
=
twitter_b
.
get
(
"https://twitter.com/i/api/graphql/{}/{}"
.
format
(
ENDPOINT
[
"UserTweetsAndReplies"
],
"UserTweetsAndReplies"
),
params
=
get_reply_param
)
replies
=
None
try
:
replies
=
twitter_b
.
get
(
"https://twitter.com/i/api/graphql/{}/{}"
.
format
(
ENDPOINT
[
"UserTweetsAndReplies"
],
"UserTweetsAndReplies"
),
params
=
get_reply_param
)
ghostban
=
True
ghostTweetId
=
None
ghostReplyId
=
None
...
...
@@ -434,7 +438,8 @@ def searchban(screen_name):
except
KeyError
as
e
:
print
(
"Errored testing {}"
.
format
(
screen_name
))
print
(
e
)
print
(
"Response: "
+
replies
.
text
)
#if replies is not None:
# print("Response: " + replies.text)
returnjson
[
"tests"
][
"ghost"
]
=
{}
returnjson
[
"tests"
][
"more_replies"
]
=
{}
hasFailure
=
True
...
...
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