Merge branch 'main' of https://github.com/govdbot/govd
All checks were successful
Build and deploy / build-and-push-image (push) Successful in 8m2s
All checks were successful
Build and deploy / build-and-push-image (push) Successful in 8m2s
This commit is contained in:
commit
072d11dba6
3 changed files with 4 additions and 3 deletions
|
@ -119,7 +119,6 @@ func ParseGQLMedia(
|
||||||
})
|
})
|
||||||
|
|
||||||
case "GraphImage", "XDTGraphImage":
|
case "GraphImage", "XDTGraphImage":
|
||||||
|
|
||||||
media.AddFormat(&models.MediaFormat{
|
media.AddFormat(&models.MediaFormat{
|
||||||
FormatID: "image",
|
FormatID: "image",
|
||||||
Type: enums.MediaTypePhoto,
|
Type: enums.MediaTypePhoto,
|
||||||
|
|
|
@ -17,6 +17,7 @@ import (
|
||||||
const (
|
const (
|
||||||
apiHostname = "x.com"
|
apiHostname = "x.com"
|
||||||
apiEndpoint = "https://x.com/i/api/graphql/zZXycP0V6H7m-2r0mOnFcA/TweetDetail"
|
apiEndpoint = "https://x.com/i/api/graphql/zZXycP0V6H7m-2r0mOnFcA/TweetDetail"
|
||||||
|
transactionID = "H/HJB3naILIqzncBBvY50XFL36IYeol67HU4ZlUe8wYvWdn9q7KJf7k2UBKOMwliRmCnohzCodsUCuvWOl9t0Z/wVY3QHA"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ShortExtractor = &models.Extractor{
|
var ShortExtractor = &models.Extractor{
|
||||||
|
|
|
@ -33,6 +33,7 @@ func BuildAPIHeaders(cookies []*http.Cookie) map[string]string {
|
||||||
headers := map[string]string{
|
headers := map[string]string{
|
||||||
"authorization": "Bearer " + authToken,
|
"authorization": "Bearer " + authToken,
|
||||||
"user-agent": util.ChromeUA,
|
"user-agent": util.ChromeUA,
|
||||||
|
"x-client-transaction-id": transactionID,
|
||||||
"x-twitter-auth-type": "OAuth2Session",
|
"x-twitter-auth-type": "OAuth2Session",
|
||||||
"x-twitter-client-language": "en",
|
"x-twitter-client-language": "en",
|
||||||
"x-twitter-active-user": "yes",
|
"x-twitter-active-user": "yes",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue