x_api_scraper 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/crystalline/enum.rbi +17 -0
- data/lib/crystalline/metadata_fields.rb +265 -0
- data/lib/crystalline/module.rb +188 -0
- data/lib/crystalline/types.rb +170 -0
- data/lib/crystalline/utils.rb +69 -0
- data/lib/crystalline.rb +13 -0
- data/lib/x_api_scraper.rb +41 -0
- data/lib/xapi_scraper/account.rb +194 -0
- data/lib/xapi_scraper/actions.rb +2166 -0
- data/lib/xapi_scraper/analysis.rb +230 -0
- data/lib/xapi_scraper/articles.rb +410 -0
- data/lib/xapi_scraper/client.rb +133 -0
- data/lib/xapi_scraper/communities.rb +1352 -0
- data/lib/xapi_scraper/dm.rb +990 -0
- data/lib/xapi_scraper/engagement.rb +792 -0
- data/lib/xapi_scraper/followers.rb +420 -0
- data/lib/xapi_scraper/following.rb +230 -0
- data/lib/xapi_scraper/lists.rb +1156 -0
- data/lib/xapi_scraper/models/callbacks.rb +12 -0
- data/lib/xapi_scraper/models/components/accountverifymodel.rb +82 -0
- data/lib/xapi_scraper/models/components/accountverifymodel.rbi +38 -0
- data/lib/xapi_scraper/models/components/accountverifyresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/accountverifyresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/advancedsearchcursorquery.rb +51 -0
- data/lib/xapi_scraper/models/components/advancedsearchcursorquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/advancedsearchcursorresponse.rb +76 -0
- data/lib/xapi_scraper/models/components/advancedsearchcursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/articleblock.rb +50 -0
- data/lib/xapi_scraper/models/components/articleblock.rbi +26 -0
- data/lib/xapi_scraper/models/components/articleblockrange.rb +47 -0
- data/lib/xapi_scraper/models/components/articleblockrange.rbi +26 -0
- data/lib/xapi_scraper/models/components/blockuserresponse.rb +54 -0
- data/lib/xapi_scraper/models/components/blockuserresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/bookmarkbody.rb +43 -0
- data/lib/xapi_scraper/models/components/bookmarkbody.rbi +20 -0
- data/lib/xapi_scraper/models/components/cashtagsquery.rb +192 -0
- data/lib/xapi_scraper/models/components/cashtagsquery.rbi +98 -0
- data/lib/xapi_scraper/models/components/cashtagsquery_language.rb +76 -0
- data/lib/xapi_scraper/models/components/cashtagsquery_language.rbi +9 -0
- data/lib/xapi_scraper/models/components/cashtagsquery_sortby.rb +18 -0
- data/lib/xapi_scraper/models/components/cashtagsquery_sortby.rbi +9 -0
- data/lib/xapi_scraper/models/components/communitymodel.rb +164 -0
- data/lib/xapi_scraper/models/components/communitymodel.rbi +92 -0
- data/lib/xapi_scraper/models/components/communitytweetsresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/communitytweetsresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/context.rb +25 -0
- data/lib/xapi_scraper/models/components/context.rbi +9 -0
- data/lib/xapi_scraper/models/components/conversationv3model.rb +57 -0
- data/lib/xapi_scraper/models/components/conversationv3model.rbi +32 -0
- data/lib/xapi_scraper/models/components/createthreaddata.rb +35 -0
- data/lib/xapi_scraper/models/components/createthreaddata.rbi +14 -0
- data/lib/xapi_scraper/models/components/createthreadquery.rb +51 -0
- data/lib/xapi_scraper/models/components/createthreadquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/createthreadresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/createthreadresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/createthreadtweetitem.rb +31 -0
- data/lib/xapi_scraper/models/components/createthreadtweetitem.rbi +14 -0
- data/lib/xapi_scraper/models/components/deletebookmarkquery.rb +35 -0
- data/lib/xapi_scraper/models/components/deletebookmarkquery.rbi +14 -0
- data/lib/xapi_scraper/models/components/deleteretweetquery.rb +35 -0
- data/lib/xapi_scraper/models/components/deleteretweetquery.rbi +14 -0
- data/lib/xapi_scraper/models/components/deletetweetquery.rb +51 -0
- data/lib/xapi_scraper/models/components/deletetweetquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/deletetweetresponse.rb +51 -0
- data/lib/xapi_scraper/models/components/deletetweetresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/dmhistoryv3data.rb +54 -0
- data/lib/xapi_scraper/models/components/dmhistoryv3data.rbi +26 -0
- data/lib/xapi_scraper/models/components/dmstatusmodelv2.rb +122 -0
- data/lib/xapi_scraper/models/components/dmstatusmodelv2.rbi +62 -0
- data/lib/xapi_scraper/models/components/dmstatusresponsev2.rb +47 -0
- data/lib/xapi_scraper/models/components/dmstatusresponsev2.rbi +26 -0
- data/lib/xapi_scraper/models/components/followersfollowingv3query.rb +51 -0
- data/lib/xapi_scraper/models/components/followersfollowingv3query.rbi +26 -0
- data/lib/xapi_scraper/models/components/followuserquery.rb +43 -0
- data/lib/xapi_scraper/models/components/followuserquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getalltweetsrepliescursorquery.rb +43 -0
- data/lib/xapi_scraper/models/components/getalltweetsrepliescursorquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getalltweetsrepliescursorresponse.rb +76 -0
- data/lib/xapi_scraper/models/components/getalltweetsrepliescursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/getcommunitymemberscursorquery.rb +43 -0
- data/lib/xapi_scraper/models/components/getcommunitymemberscursorquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getcommunitymemberscursorresponse.rb +72 -0
- data/lib/xapi_scraper/models/components/getcommunitymemberscursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/getcommunityresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/getcommunityresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/getcommunitytweetscursorquery.rb +60 -0
- data/lib/xapi_scraper/models/components/getcommunitytweetscursorquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/getcommunitytweetscursorresponse.rb +72 -0
- data/lib/xapi_scraper/models/components/getcommunitytweetscursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/getconversationsv3query.rb +62 -0
- data/lib/xapi_scraper/models/components/getconversationsv3query.rbi +32 -0
- data/lib/xapi_scraper/models/components/getconversationsv3response.rb +47 -0
- data/lib/xapi_scraper/models/components/getconversationsv3response.rbi +26 -0
- data/lib/xapi_scraper/models/components/getdmhistoryv3query.rb +94 -0
- data/lib/xapi_scraper/models/components/getdmhistoryv3query.rbi +50 -0
- data/lib/xapi_scraper/models/components/getdmhistoryv3response.rb +47 -0
- data/lib/xapi_scraper/models/components/getdmhistoryv3response.rbi +26 -0
- data/lib/xapi_scraper/models/components/getdmmediav3data.rb +77 -0
- data/lib/xapi_scraper/models/components/getdmmediav3data.rbi +44 -0
- data/lib/xapi_scraper/models/components/getdmmediav3query.rb +112 -0
- data/lib/xapi_scraper/models/components/getdmmediav3query.rbi +56 -0
- data/lib/xapi_scraper/models/components/getdmmediav3response.rb +47 -0
- data/lib/xapi_scraper/models/components/getdmmediav3response.rbi +26 -0
- data/lib/xapi_scraper/models/components/getlistmemberscursorquery.rb +43 -0
- data/lib/xapi_scraper/models/components/getlistmemberscursorquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getlistmemberscursorresponse.rb +72 -0
- data/lib/xapi_scraper/models/components/getlistmemberscursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/getlisttweetscursorquery.rb +43 -0
- data/lib/xapi_scraper/models/components/getlisttweetscursorquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getlisttweetscursorresponse.rb +72 -0
- data/lib/xapi_scraper/models/components/getlisttweetscursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/getquotescursorquery.rb +63 -0
- data/lib/xapi_scraper/models/components/getquotescursorquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/getquotescursorquery_sort_by.rb +18 -0
- data/lib/xapi_scraper/models/components/getquotescursorquery_sort_by.rbi +9 -0
- data/lib/xapi_scraper/models/components/getquotescursorresponse.rb +72 -0
- data/lib/xapi_scraper/models/components/getquotescursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/getquotesquery.rb +59 -0
- data/lib/xapi_scraper/models/components/getquotesquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/getquotesquery_sort_by.rb +18 -0
- data/lib/xapi_scraper/models/components/getquotesquery_sort_by.rbi +9 -0
- data/lib/xapi_scraper/models/components/getquotesresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/getquotesresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/getrepliespagequery.rb +51 -0
- data/lib/xapi_scraper/models/components/getrepliespagequery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getrepliespagequery_sort_by.rb +19 -0
- data/lib/xapi_scraper/models/components/getrepliespagequery_sort_by.rbi +9 -0
- data/lib/xapi_scraper/models/components/getrepliespageresponse.rb +85 -0
- data/lib/xapi_scraper/models/components/getrepliespageresponse.rbi +44 -0
- data/lib/xapi_scraper/models/components/getretweeterscursorquery.rb +43 -0
- data/lib/xapi_scraper/models/components/getretweeterscursorquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/getretweeterscursorresponse.rb +72 -0
- data/lib/xapi_scraper/models/components/getretweeterscursorresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/gettweetsbyidresponse.rb +58 -0
- data/lib/xapi_scraper/models/components/gettweetsbyidresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/hashtagsquery.rb +192 -0
- data/lib/xapi_scraper/models/components/hashtagsquery.rbi +98 -0
- data/lib/xapi_scraper/models/components/hashtagsquery_language.rb +76 -0
- data/lib/xapi_scraper/models/components/hashtagsquery_language.rbi +9 -0
- data/lib/xapi_scraper/models/components/hashtagsquery_sortby.rb +18 -0
- data/lib/xapi_scraper/models/components/hashtagsquery_sortby.rbi +9 -0
- data/lib/xapi_scraper/models/components/likeactionbody.rb +43 -0
- data/lib/xapi_scraper/models/components/likeactionbody.rbi +20 -0
- data/lib/xapi_scraper/models/components/listmembersresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/listmembersresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/listmodel.rb +77 -0
- data/lib/xapi_scraper/models/components/listmodel.rbi +44 -0
- data/lib/xapi_scraper/models/components/listsubscribersresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/listsubscribersresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/listtweetsresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/listtweetsresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/loc.rb +25 -0
- data/lib/xapi_scraper/models/components/loc.rbi +9 -0
- data/lib/xapi_scraper/models/components/mediamodel.rb +194 -0
- data/lib/xapi_scraper/models/components/mediamodel.rbi +110 -0
- data/lib/xapi_scraper/models/components/messagemodel.rb +100 -0
- data/lib/xapi_scraper/models/components/messagemodel.rbi +56 -0
- data/lib/xapi_scraper/models/components/posttweetdata.rb +51 -0
- data/lib/xapi_scraper/models/components/posttweetdata.rbi +26 -0
- data/lib/xapi_scraper/models/components/posttweetquery.rb +122 -0
- data/lib/xapi_scraper/models/components/posttweetquery.rbi +62 -0
- data/lib/xapi_scraper/models/components/posttweetresponse.rb +58 -0
- data/lib/xapi_scraper/models/components/posttweetresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/posttweetwithoutcookiequery.rb +102 -0
- data/lib/xapi_scraper/models/components/posttweetwithoutcookiequery.rbi +50 -0
- data/lib/xapi_scraper/models/components/quotetweetquery.rb +112 -0
- data/lib/xapi_scraper/models/components/quotetweetquery.rbi +56 -0
- data/lib/xapi_scraper/models/components/retweetactionbody.rb +43 -0
- data/lib/xapi_scraper/models/components/retweetactionbody.rbi +20 -0
- data/lib/xapi_scraper/models/components/searchcommunityquery.rb +43 -0
- data/lib/xapi_scraper/models/components/searchcommunityquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/searchcommunityresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/searchcommunityresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/searchcommunitytweetsquery.rb +51 -0
- data/lib/xapi_scraper/models/components/searchcommunitytweetsquery.rbi +26 -0
- data/lib/xapi_scraper/models/components/searchlistquery.rb +43 -0
- data/lib/xapi_scraper/models/components/searchlistquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/searchlistresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/searchlistresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/searchresponse.rb +54 -0
- data/lib/xapi_scraper/models/components/searchresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/searchuserresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/searchuserresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/security.rb +34 -0
- data/lib/xapi_scraper/models/components/security.rbi +14 -0
- data/lib/xapi_scraper/models/components/senddmresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/senddmresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/senddmv3query.rb +90 -0
- data/lib/xapi_scraper/models/components/senddmv3query.rbi +50 -0
- data/lib/xapi_scraper/models/components/sentimentanalysismodel.rb +43 -0
- data/lib/xapi_scraper/models/components/sentimentanalysismodel.rbi +20 -0
- data/lib/xapi_scraper/models/components/sentimentanalysisquery.rb +31 -0
- data/lib/xapi_scraper/models/components/sentimentanalysisquery.rbi +14 -0
- data/lib/xapi_scraper/models/components/sentimentanalysisresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/sentimentanalysisresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/standardresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/standardresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/streammodel.rb +51 -0
- data/lib/xapi_scraper/models/components/streammodel.rbi +26 -0
- data/lib/xapi_scraper/models/components/tweet_type.rb +19 -0
- data/lib/xapi_scraper/models/components/tweet_type.rbi +9 -0
- data/lib/xapi_scraper/models/components/tweetactionresponse.rb +51 -0
- data/lib/xapi_scraper/models/components/tweetactionresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/tweetmodel.rb +518 -0
- data/lib/xapi_scraper/models/components/tweetmodel.rbi +302 -0
- data/lib/xapi_scraper/models/components/tweetthreadbyidbody.rb +53 -0
- data/lib/xapi_scraper/models/components/tweetthreadbyidbody.rbi +26 -0
- data/lib/xapi_scraper/models/components/twitteraccountbasedstandardresponse.rb +58 -0
- data/lib/xapi_scraper/models/components/twitteraccountbasedstandardresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/twitteruseraboutresponse.rb +208 -0
- data/lib/xapi_scraper/models/components/twitteruseraboutresponse.rbi +116 -0
- data/lib/xapi_scraper/models/components/twitteruseraboutstandardresponse.rb +58 -0
- data/lib/xapi_scraper/models/components/twitteruseraboutstandardresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/unfavoritetweetquery.rb +35 -0
- data/lib/xapi_scraper/models/components/unfavoritetweetquery.rbi +14 -0
- data/lib/xapi_scraper/models/components/unfollowuserquery.rb +43 -0
- data/lib/xapi_scraper/models/components/unfollowuserquery.rbi +20 -0
- data/lib/xapi_scraper/models/components/unfollowuserresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/unfollowuserresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/urlmodel.rb +47 -0
- data/lib/xapi_scraper/models/components/urlmodel.rbi +26 -0
- data/lib/xapi_scraper/models/components/userinfo.rb +348 -0
- data/lib/xapi_scraper/models/components/userinfo.rbi +200 -0
- data/lib/xapi_scraper/models/components/usermodel.rb +344 -0
- data/lib/xapi_scraper/models/components/usermodel.rbi +200 -0
- data/lib/xapi_scraper/models/components/usersdetailsresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/usersdetailsresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/usertimelinefillquery.rb +35 -0
- data/lib/xapi_scraper/models/components/usertimelinefillquery.rbi +14 -0
- data/lib/xapi_scraper/models/components/usertimelinepagequery.rb +43 -0
- data/lib/xapi_scraper/models/components/usertimelinepagequery.rbi +20 -0
- data/lib/xapi_scraper/models/components/usertimelinepageresponse.rb +112 -0
- data/lib/xapi_scraper/models/components/usertimelinepageresponse.rbi +56 -0
- data/lib/xapi_scraper/models/components/usertimelineresponse.rb +76 -0
- data/lib/xapi_scraper/models/components/usertimelineresponse.rbi +38 -0
- data/lib/xapi_scraper/models/components/usertweetitem.rb +225 -0
- data/lib/xapi_scraper/models/components/usertweetitem.rbi +122 -0
- data/lib/xapi_scraper/models/components/validationerror.rb +67 -0
- data/lib/xapi_scraper/models/components/validationerror.rbi +38 -0
- data/lib/xapi_scraper/models/components/verifiedfollowersdata.rb +58 -0
- data/lib/xapi_scraper/models/components/verifiedfollowersdata.rbi +26 -0
- data/lib/xapi_scraper/models/components/verifiedfollowersresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/verifiedfollowersresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components/xarticlemodel.rb +305 -0
- data/lib/xapi_scraper/models/components/xarticlemodel.rbi +170 -0
- data/lib/xapi_scraper/models/components/xarticleresponse.rb +47 -0
- data/lib/xapi_scraper/models/components/xarticleresponse.rbi +26 -0
- data/lib/xapi_scraper/models/components.rb +128 -0
- data/lib/xapi_scraper/models/errors/apierror.rb +39 -0
- data/lib/xapi_scraper/models/errors/apierror.rbi +27 -0
- data/lib/xapi_scraper/models/errors/httpvalidationerror.rb +48 -0
- data/lib/xapi_scraper/models/errors/httpvalidationerror.rbi +20 -0
- data/lib/xapi_scraper/models/errors.rb +13 -0
- data/lib/xapi_scraper/models/operations/accountgetbalance_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/accountgetbalance_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/analysissentiment_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/analysissentiment_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/articlesfetch_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/articlesfetch_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/articlesmarkdown_request.rb +31 -0
- data/lib/xapi_scraper/models/operations/articlesmarkdown_request.rbi +14 -0
- data/lib/xapi_scraper/models/operations/articlesmarkdown_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/articlesmarkdown_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiesget_request.rb +34 -0
- data/lib/xapi_scraper/models/operations/communitiesget_request.rbi +14 -0
- data/lib/xapi_scraper/models/operations/communitiesget_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/communitiesget_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiesmembers_request.rb +42 -0
- data/lib/xapi_scraper/models/operations/communitiesmembers_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/communitiesmembers_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/communitiesmembers_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiesmemberspage_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/communitiesmemberspage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiessearch_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/communitiessearch_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiessearchtweets_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/communitiessearchtweets_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiestweets_request.rb +50 -0
- data/lib/xapi_scraper/models/operations/communitiestweets_request.rbi +26 -0
- data/lib/xapi_scraper/models/operations/communitiestweets_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/communitiestweets_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/communitiestweetspage_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/communitiestweetspage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/country.rb +79 -0
- data/lib/xapi_scraper/models/operations/country.rbi +9 -0
- data/lib/xapi_scraper/models/operations/dmconversations_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/dmconversations_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/dmhistory_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/dmhistory_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/dmmedia_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/dmmedia_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/dmsend_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/dmsend_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/dmstatus_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/dmstatus_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/listsmembers_request.rb +38 -0
- data/lib/xapi_scraper/models/operations/listsmembers_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/listsmembers_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/listsmembers_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/listsmemberspage_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/listsmemberspage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/listssearch_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/listssearch_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/listssubscribers_request.rb +38 -0
- data/lib/xapi_scraper/models/operations/listssubscribers_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/listssubscribers_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/listssubscribers_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/liststweets_request.rb +38 -0
- data/lib/xapi_scraper/models/operations/liststweets_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/liststweets_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/liststweets_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/liststweetspage_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/liststweetspage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/searchadvanced_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/searchadvanced_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/searchcashtags_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/searchcashtags_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/searchhashtags_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/searchhashtags_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/timelinestweetsandreplies_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/timelinestweetsandreplies_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/timelinestweetsandreplies_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/timelinestweetsandreplies_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/timelinestweetsandrepliespage_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/timelinestweetsandrepliespage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/timelinesuser_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/timelinesuser_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/timelinesuser_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/timelinesuser_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/timelinesuserpage_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/timelinesuserpage_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/timelinesuserpage_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/timelinesuserpage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/trendingbycountry_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/trendingbycountry_request.rbi +14 -0
- data/lib/xapi_scraper/models/operations/trendingbycountry_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/trendingbycountry_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/trendingcontents_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/trendingcontents_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/trendingcontents_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/trendingcontents_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/trendingcountries_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/trendingcountries_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/trendingtopics_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/trendingtopics_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/trendingtweets_request.rb +63 -0
- data/lib/xapi_scraper/models/operations/trendingtweets_request.rbi +32 -0
- data/lib/xapi_scraper/models/operations/trendingtweets_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/trendingtweets_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweet_type.rb +19 -0
- data/lib/xapi_scraper/models/operations/tweet_type.rbi +9 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsbookmark_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsbookmark_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsbookmark_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsbookmark_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionscreate_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionscreate_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionscreatethread_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionscreatethread_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionscreatewithoutcookie_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionscreatewithoutcookie_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsdeletebatch_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsdeletebatch_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionslike_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsactionslike_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsactionslike_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionslike_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsquote_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsquote_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsretweet_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsretweet_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsretweet_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsretweet_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunbookmark_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunbookmark_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunbookmark_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunbookmark_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunlike_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunlike_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunlike_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunlike_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunretweet_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunretweet_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunretweet_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsactionsunretweet_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsdetail_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsdetail_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementquotes_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementquotes_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementquotespage_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementquotespage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementretweeters_request.rb +39 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementretweeters_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementretweeters_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementretweeters_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementretweeterspage_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsengagementretweeterspage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetslookup_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetslookup_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsrepliespage_request.rb +35 -0
- data/lib/xapi_scraper/models/operations/tweetsrepliespage_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/tweetsrepliespage_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsrepliespage_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetssimilar_request.rb +30 -0
- data/lib/xapi_scraper/models/operations/tweetssimilar_request.rbi +14 -0
- data/lib/xapi_scraper/models/operations/tweetssimilar_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetssimilar_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/tweetsthread_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/tweetsthread_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersfollow_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersfollow_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersfollowerslist_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersfollowerslist_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersfollowersverified_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersfollowersverified_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersfollowinglist_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersfollowinglist_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersgetabout_request.rb +31 -0
- data/lib/xapi_scraper/models/operations/usersgetabout_request.rbi +14 -0
- data/lib/xapi_scraper/models/operations/usersgetabout_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/usersgetabout_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersgetaccountbased_response.rb +54 -0
- data/lib/xapi_scraper/models/operations/usersgetaccountbased_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersgetbyids_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersgetbyids_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersgetbyusernames_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersgetbyusernames_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersgetstatuses_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersgetstatuses_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/userssearch_request.rb +39 -0
- data/lib/xapi_scraper/models/operations/userssearch_request.rbi +20 -0
- data/lib/xapi_scraper/models/operations/userssearch_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/userssearch_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersunfollow_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersunfollow_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations/usersverifyaccount_response.rb +51 -0
- data/lib/xapi_scraper/models/operations/usersverifyaccount_response.rbi +32 -0
- data/lib/xapi_scraper/models/operations.rb +127 -0
- data/lib/xapi_scraper/replies.rb +235 -0
- data/lib/xapi_scraper/sdk_hooks/hooks.rb +99 -0
- data/lib/xapi_scraper/sdk_hooks/registration.rb +34 -0
- data/lib/xapi_scraper/sdk_hooks/types.rb +180 -0
- data/lib/xapi_scraper/sdkconfiguration.rb +107 -0
- data/lib/xapi_scraper/sdkconfiguration.rbi +83 -0
- data/lib/xapi_scraper/search.rb +610 -0
- data/lib/xapi_scraper/timelines.rb +805 -0
- data/lib/xapi_scraper/trending.rb +888 -0
- data/lib/xapi_scraper/tweets.rb +801 -0
- data/lib/xapi_scraper/users.rb +1748 -0
- data/lib/xapi_scraper/utils/forms.rb +232 -0
- data/lib/xapi_scraper/utils/headers.rb +82 -0
- data/lib/xapi_scraper/utils/query_params.rb +167 -0
- data/lib/xapi_scraper/utils/request_bodies.rb +79 -0
- data/lib/xapi_scraper/utils/retries.rb +139 -0
- data/lib/xapi_scraper/utils/security.rb +158 -0
- data/lib/xapi_scraper/utils/url.rb +124 -0
- data/lib/xapi_scraper/utils/utils.rb +241 -0
- metadata +720 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
module XapiScraper
|
|
7
|
+
module Models
|
|
8
|
+
module Components
|
|
9
|
+
# Query parameters for searching hashtags
|
|
10
|
+
class HashtagsQuery
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
# Hashtag to search for (with or without # prefix)
|
|
15
|
+
field(
|
|
16
|
+
:hashtags,
|
|
17
|
+
Crystalline::Nilable.new(Crystalline::Array.new(::String)),
|
|
18
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("hashtags")}}
|
|
19
|
+
)
|
|
20
|
+
# Start time for search in UNIX timestamp
|
|
21
|
+
field(
|
|
22
|
+
:start_time,
|
|
23
|
+
Crystalline::Nilable.new(::String),
|
|
24
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("startTime")}}
|
|
25
|
+
)
|
|
26
|
+
# End time for search in UNIX timestamp
|
|
27
|
+
field(
|
|
28
|
+
:end_time,
|
|
29
|
+
Crystalline::Nilable.new(::String),
|
|
30
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("endTime")}}
|
|
31
|
+
)
|
|
32
|
+
# Sort order for results
|
|
33
|
+
field(
|
|
34
|
+
:sort_by,
|
|
35
|
+
Crystalline::Nilable.new(Models::Components::HashtagsQuerySortBy),
|
|
36
|
+
{
|
|
37
|
+
'format_json': {
|
|
38
|
+
'letter_case': ::XapiScraper::Utils.field_name("sortBy"),
|
|
39
|
+
'decoder': ::XapiScraper::Utils.enum_from_string(Models::Components::HashtagsQuerySortBy, true)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
# Maximum number of tweets to return
|
|
44
|
+
field(
|
|
45
|
+
:max_items,
|
|
46
|
+
Crystalline::Nilable.new(::Integer),
|
|
47
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("maxItems")}}
|
|
48
|
+
)
|
|
49
|
+
# Minimum number of likes required
|
|
50
|
+
field(
|
|
51
|
+
:mininum_likes,
|
|
52
|
+
Crystalline::Nilable.new(::Integer),
|
|
53
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("mininumLikes")}}
|
|
54
|
+
)
|
|
55
|
+
# Minimum number of retweets required
|
|
56
|
+
field(
|
|
57
|
+
:mininum_retweets,
|
|
58
|
+
Crystalline::Nilable.new(::Integer),
|
|
59
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("mininumRetweets")}}
|
|
60
|
+
)
|
|
61
|
+
# Minimum number of replies required
|
|
62
|
+
field(
|
|
63
|
+
:mininum_replies,
|
|
64
|
+
Crystalline::Nilable.new(::Integer),
|
|
65
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("mininumReplies")}}
|
|
66
|
+
)
|
|
67
|
+
# Filter for blue verified accounts only
|
|
68
|
+
field(
|
|
69
|
+
:blue_verified,
|
|
70
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
71
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("blueVerified")}}
|
|
72
|
+
)
|
|
73
|
+
# Filter for verified accounts only
|
|
74
|
+
field(
|
|
75
|
+
:verified,
|
|
76
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
77
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("verified")}}
|
|
78
|
+
)
|
|
79
|
+
# Language filter for tweets
|
|
80
|
+
field(
|
|
81
|
+
:language,
|
|
82
|
+
Crystalline::Nilable.new(Models::Components::HashtagsQueryLanguage),
|
|
83
|
+
{
|
|
84
|
+
'format_json': {
|
|
85
|
+
'letter_case': ::XapiScraper::Utils.field_name("language"),
|
|
86
|
+
'decoder': ::XapiScraper::Utils.enum_from_string(Models::Components::HashtagsQueryLanguage, true)
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
# Filter for images only
|
|
91
|
+
field(
|
|
92
|
+
:only_image,
|
|
93
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
94
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("onlyImage")}}
|
|
95
|
+
)
|
|
96
|
+
# Filter for videos only
|
|
97
|
+
field(
|
|
98
|
+
:only_video,
|
|
99
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
100
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("onlyVideo")}}
|
|
101
|
+
)
|
|
102
|
+
# Filter for quotes only
|
|
103
|
+
field(
|
|
104
|
+
:only_quote,
|
|
105
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
106
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("onlyQuote")}}
|
|
107
|
+
)
|
|
108
|
+
# Filter for replies only
|
|
109
|
+
field(
|
|
110
|
+
:only_reply,
|
|
111
|
+
Crystalline::Nilable.new(Crystalline::Boolean.new),
|
|
112
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("onlyReply")}}
|
|
113
|
+
)
|
|
114
|
+
|
|
115
|
+
sig {
|
|
116
|
+
params(
|
|
117
|
+
hashtags: T.nilable(T::Array[::String]),
|
|
118
|
+
start_time: T.nilable(::String),
|
|
119
|
+
end_time: T.nilable(::String),
|
|
120
|
+
sort_by: T.nilable(Models::Components::HashtagsQuerySortBy),
|
|
121
|
+
max_items: T.nilable(::Integer),
|
|
122
|
+
mininum_likes: T.nilable(::Integer),
|
|
123
|
+
mininum_retweets: T.nilable(::Integer),
|
|
124
|
+
mininum_replies: T.nilable(::Integer),
|
|
125
|
+
blue_verified: T.nilable(T::Boolean),
|
|
126
|
+
verified: T.nilable(T::Boolean),
|
|
127
|
+
language: T.nilable(Models::Components::HashtagsQueryLanguage),
|
|
128
|
+
only_image: T.nilable(T::Boolean),
|
|
129
|
+
only_video: T.nilable(T::Boolean),
|
|
130
|
+
only_quote: T.nilable(T::Boolean),
|
|
131
|
+
only_reply: T.nilable(T::Boolean)
|
|
132
|
+
)
|
|
133
|
+
.void
|
|
134
|
+
}
|
|
135
|
+
def initialize(
|
|
136
|
+
hashtags: nil,
|
|
137
|
+
start_time: nil,
|
|
138
|
+
end_time: nil,
|
|
139
|
+
sort_by: nil,
|
|
140
|
+
max_items: nil,
|
|
141
|
+
mininum_likes: nil,
|
|
142
|
+
mininum_retweets: nil,
|
|
143
|
+
mininum_replies: nil,
|
|
144
|
+
blue_verified: nil,
|
|
145
|
+
verified: nil,
|
|
146
|
+
language: nil,
|
|
147
|
+
only_image: nil,
|
|
148
|
+
only_video: nil,
|
|
149
|
+
only_quote: nil,
|
|
150
|
+
only_reply: nil
|
|
151
|
+
)
|
|
152
|
+
@hashtags = hashtags
|
|
153
|
+
@start_time = start_time
|
|
154
|
+
@end_time = end_time
|
|
155
|
+
@sort_by = sort_by
|
|
156
|
+
@max_items = max_items
|
|
157
|
+
@mininum_likes = mininum_likes
|
|
158
|
+
@mininum_retweets = mininum_retweets
|
|
159
|
+
@mininum_replies = mininum_replies
|
|
160
|
+
@blue_verified = blue_verified
|
|
161
|
+
@verified = verified
|
|
162
|
+
@language = language
|
|
163
|
+
@only_image = only_image
|
|
164
|
+
@only_video = only_video
|
|
165
|
+
@only_quote = only_quote
|
|
166
|
+
@only_reply = only_reply
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
170
|
+
def ==(other)
|
|
171
|
+
return false unless other.is_a?(self.class)
|
|
172
|
+
return false unless @hashtags == other.hashtags
|
|
173
|
+
return false unless @start_time == other.start_time
|
|
174
|
+
return false unless @end_time == other.end_time
|
|
175
|
+
return false unless @sort_by == other.sort_by
|
|
176
|
+
return false unless @max_items == other.max_items
|
|
177
|
+
return false unless @mininum_likes == other.mininum_likes
|
|
178
|
+
return false unless @mininum_retweets == other.mininum_retweets
|
|
179
|
+
return false unless @mininum_replies == other.mininum_replies
|
|
180
|
+
return false unless @blue_verified == other.blue_verified
|
|
181
|
+
return false unless @verified == other.verified
|
|
182
|
+
return false unless @language == other.language
|
|
183
|
+
return false unless @only_image == other.only_image
|
|
184
|
+
return false unless @only_video == other.only_video
|
|
185
|
+
return false unless @only_quote == other.only_quote
|
|
186
|
+
return false unless @only_reply == other.only_reply
|
|
187
|
+
true
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class XapiScraper::Models::Components::HashtagsQuery
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class XapiScraper::Models::Components::HashtagsQuery
|
|
9
|
+
def hashtags
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def hashtags=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def start_time
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def start_time=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def end_time
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def end_time=(str_)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def sort_by
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def sort_by=(str_)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def max_items
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def max_items=(str_)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def mininum_likes
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def mininum_likes=(str_)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def mininum_retweets
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def mininum_retweets=(str_)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def mininum_replies
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
def mininum_replies=(str_)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def blue_verified
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def blue_verified=(str_)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def verified
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def verified=(str_)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
def language
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def language=(str_)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
def only_image
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
def only_image=(str_)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
def only_video
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
def only_video=(str_)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def only_quote
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
def only_quote=(str_)
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
def only_reply
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def only_reply=(str_)
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
module XapiScraper
|
|
7
|
+
module Models
|
|
8
|
+
module Components
|
|
9
|
+
|
|
10
|
+
class HashtagsQueryLanguage < T::Enum
|
|
11
|
+
enums do
|
|
12
|
+
AM = new("am")
|
|
13
|
+
AR = new("ar")
|
|
14
|
+
BG = new("bg")
|
|
15
|
+
BN = new("bn")
|
|
16
|
+
BO = new("bo")
|
|
17
|
+
CA = new("ca")
|
|
18
|
+
CH = new("ch")
|
|
19
|
+
CS = new("cs")
|
|
20
|
+
DA = new("da")
|
|
21
|
+
DE = new("de")
|
|
22
|
+
DV = new("dv")
|
|
23
|
+
EL = new("el")
|
|
24
|
+
EN = new("en")
|
|
25
|
+
ES = new("es")
|
|
26
|
+
ET = new("et")
|
|
27
|
+
FA = new("fa")
|
|
28
|
+
FI = new("fi")
|
|
29
|
+
FR = new("fr")
|
|
30
|
+
GU = new("gu")
|
|
31
|
+
HI = new("hi")
|
|
32
|
+
HT = new("ht")
|
|
33
|
+
HU = new("hu")
|
|
34
|
+
HY = new("hy")
|
|
35
|
+
IN = new("in")
|
|
36
|
+
IS = new("is")
|
|
37
|
+
IT = new("it")
|
|
38
|
+
IU = new("iu")
|
|
39
|
+
IW = new("iw")
|
|
40
|
+
JA = new("ja")
|
|
41
|
+
KA = new("ka")
|
|
42
|
+
KM = new("km")
|
|
43
|
+
KN = new("kn")
|
|
44
|
+
KO = new("ko")
|
|
45
|
+
LO = new("lo")
|
|
46
|
+
LT = new("lt")
|
|
47
|
+
LV = new("lv")
|
|
48
|
+
ML = new("ml")
|
|
49
|
+
MY = new("my")
|
|
50
|
+
NE = new("ne")
|
|
51
|
+
NL = new("nl")
|
|
52
|
+
NO = new("no")
|
|
53
|
+
OR = new("or")
|
|
54
|
+
PA = new("pa")
|
|
55
|
+
PL = new("pl")
|
|
56
|
+
PT = new("pt")
|
|
57
|
+
RO = new("ro")
|
|
58
|
+
RU = new("ru")
|
|
59
|
+
SI = new("si")
|
|
60
|
+
SK = new("sk")
|
|
61
|
+
SL = new("sl")
|
|
62
|
+
SV = new("sv")
|
|
63
|
+
TA = new("ta")
|
|
64
|
+
TE = new("te")
|
|
65
|
+
TH = new("th")
|
|
66
|
+
TL = new("tl")
|
|
67
|
+
TR = new("tr")
|
|
68
|
+
UK = new("uk")
|
|
69
|
+
UR = new("ur")
|
|
70
|
+
VI = new("vi")
|
|
71
|
+
ZH = new("zh")
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
module XapiScraper
|
|
7
|
+
module Models
|
|
8
|
+
module Components
|
|
9
|
+
|
|
10
|
+
class HashtagsQuerySortBy < T::Enum
|
|
11
|
+
enums do
|
|
12
|
+
LATEST = new("Latest")
|
|
13
|
+
TOP = new("Top")
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
module XapiScraper
|
|
7
|
+
module Models
|
|
8
|
+
module Components
|
|
9
|
+
# Body for the like action, containing only the cookie.
|
|
10
|
+
class LikeActionBody
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
# Twitter authentication cookie or Twitter auth_token, [how-to-get-twitter-cookie](https://youtube-promotion.pages.dev/how-to-get-twitter-cookie)
|
|
15
|
+
field(
|
|
16
|
+
:cookie,
|
|
17
|
+
::String,
|
|
18
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("cookie"), required: true}}
|
|
19
|
+
)
|
|
20
|
+
# The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://app.proxy-cheap.com/r/qiMxub
|
|
21
|
+
field(
|
|
22
|
+
:proxy,
|
|
23
|
+
Crystalline::Nilable.new(::String),
|
|
24
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("proxy")}}
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
sig { params(cookie: ::String, proxy: T.nilable(::String)).void }
|
|
28
|
+
def initialize(cookie:, proxy: nil)
|
|
29
|
+
@cookie = cookie
|
|
30
|
+
@proxy = proxy
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
34
|
+
def ==(other)
|
|
35
|
+
return false unless other.is_a?(self.class)
|
|
36
|
+
return false unless @cookie == other.cookie
|
|
37
|
+
return false unless @proxy == other.proxy
|
|
38
|
+
true
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class XapiScraper::Models::Components::LikeActionBody
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class XapiScraper::Models::Components::LikeActionBody
|
|
9
|
+
def cookie
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def cookie=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def proxy
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def proxy=(str_)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
module XapiScraper
|
|
7
|
+
module Models
|
|
8
|
+
module Components
|
|
9
|
+
|
|
10
|
+
class ListMembersResponse
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
# The status code of the response.
|
|
15
|
+
field(
|
|
16
|
+
:code,
|
|
17
|
+
::Integer,
|
|
18
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("code"), required: true}}
|
|
19
|
+
)
|
|
20
|
+
# The message of the response.
|
|
21
|
+
field :msg, ::String, {'format_json': {'letter_case': ::XapiScraper::Utils.field_name("msg"), required: true}}
|
|
22
|
+
# A list of user objects.
|
|
23
|
+
field(
|
|
24
|
+
:data,
|
|
25
|
+
Crystalline::Array.new(Models::Components::UserModel),
|
|
26
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("data"), required: true}}
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
sig { params(code: ::Integer, msg: ::String, data: T::Array[Models::Components::UserModel]).void }
|
|
30
|
+
def initialize(code:, msg:, data:)
|
|
31
|
+
@code = code
|
|
32
|
+
@msg = msg
|
|
33
|
+
@data = data
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
37
|
+
def ==(other)
|
|
38
|
+
return false unless other.is_a?(self.class)
|
|
39
|
+
return false unless @code == other.code
|
|
40
|
+
return false unless @msg == other.msg
|
|
41
|
+
return false unless @data == other.data
|
|
42
|
+
true
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class XapiScraper::Models::Components::ListMembersResponse
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class XapiScraper::Models::Components::ListMembersResponse
|
|
9
|
+
def code
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def code=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def msg
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def msg=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def data
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def data=(str_)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
# typed: true
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
module XapiScraper
|
|
7
|
+
module Models
|
|
8
|
+
module Components
|
|
9
|
+
|
|
10
|
+
class ListModel
|
|
11
|
+
extend T::Sig
|
|
12
|
+
include Crystalline::MetadataFields
|
|
13
|
+
|
|
14
|
+
# The ID of the list
|
|
15
|
+
field :id, ::String, {'format_json': {'letter_case': ::XapiScraper::Utils.field_name("id"), required: true}}
|
|
16
|
+
# The name of the list
|
|
17
|
+
field :name, ::String, {'format_json': {'letter_case': ::XapiScraper::Utils.field_name("name"), required: true}}
|
|
18
|
+
# The description of the list
|
|
19
|
+
field(
|
|
20
|
+
:description,
|
|
21
|
+
::String,
|
|
22
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("description"), required: true}}
|
|
23
|
+
)
|
|
24
|
+
# Whether the list is private
|
|
25
|
+
field(
|
|
26
|
+
:is_private,
|
|
27
|
+
Crystalline::Boolean.new,
|
|
28
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("is_private"), required: true}}
|
|
29
|
+
)
|
|
30
|
+
# The number of members in the list
|
|
31
|
+
field(
|
|
32
|
+
:member_count,
|
|
33
|
+
::Integer,
|
|
34
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("member_count"), required: true}}
|
|
35
|
+
)
|
|
36
|
+
# The number of subscribers in the list
|
|
37
|
+
field(
|
|
38
|
+
:subscriber_count,
|
|
39
|
+
::Integer,
|
|
40
|
+
{'format_json': {'letter_case': ::XapiScraper::Utils.field_name("subscriber_count"), required: true}}
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
sig {
|
|
44
|
+
params(
|
|
45
|
+
id: ::String,
|
|
46
|
+
name: ::String,
|
|
47
|
+
description: ::String,
|
|
48
|
+
is_private: T::Boolean,
|
|
49
|
+
member_count: ::Integer,
|
|
50
|
+
subscriber_count: ::Integer
|
|
51
|
+
)
|
|
52
|
+
.void
|
|
53
|
+
}
|
|
54
|
+
def initialize(id:, name:, description:, is_private:, member_count:, subscriber_count:)
|
|
55
|
+
@id = id
|
|
56
|
+
@name = name
|
|
57
|
+
@description = description
|
|
58
|
+
@is_private = is_private
|
|
59
|
+
@member_count = member_count
|
|
60
|
+
@subscriber_count = subscriber_count
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
64
|
+
def ==(other)
|
|
65
|
+
return false unless other.is_a?(self.class)
|
|
66
|
+
return false unless @id == other.id
|
|
67
|
+
return false unless @name == other.name
|
|
68
|
+
return false unless @description == other.description
|
|
69
|
+
return false unless @is_private == other.is_private
|
|
70
|
+
return false unless @member_count == other.member_count
|
|
71
|
+
return false unless @subscriber_count == other.subscriber_count
|
|
72
|
+
true
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
class XapiScraper::Models::Components::ListModel
|
|
5
|
+
extend ::Crystalline::MetadataFields::ClassMethods
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class XapiScraper::Models::Components::ListModel
|
|
9
|
+
def id
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def id=(str_)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def name
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def name=(str_)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def description
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def description=(str_)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def is_private
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def is_private=(str_)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def member_count
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def member_count=(str_)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def subscriber_count
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def subscriber_count=(str_)
|
|
43
|
+
end
|
|
44
|
+
end
|