Debo señalar que no estoy hablando de la API que proporcionan, sino de lo que usan para descargar el contenido cuando simplemente se desplaza por la página.
Me las arreglé para obtener la solicitud que creo que está impulsando todo, pero no entiendo muy bien cómo funciona.
Aquí está codificado en URL:
https://twitter.com/i/api/graphql/u7I0lIRjA96yhblCP2akgA/UserTweetsAndReplies?variables=%7B%22userId%22%3A%221689053936%22%2C%22count%22%3A40%2C%22cursor%22%3A%22HBaKgLOFsoP%2BpykAAA%3D%3D%22%2C%22includePromotedContent%22%3Atrue%2C%22withCommunity%22%3Atrue%2C%22withSuperFollowsUserFields%22%3Atrue%2C%22withDownvotePerspective%22%3Afalse%2C%22withReactionsMetadata%22%3Afalse%2C%22withReactionsPerspective%22%3Afalse%2C%22withSuperFollowsTweetFields%22%3Atrue%2C%22withVoice%22%3Atrue%2C%22withV2Timeline%22%3Afalse%2C%22__fs_dont_mention_me_view_api_enabled%22%3Afalse%2C%22__fs_interactive_text_enabled%22%3Afalse%2C%22__fs_responsive_web_uc_gql_enabled%22%3Afalse%7DY aquí están las variables decodificadas:
{ "userId": "1689053936", "count": 40, "cursor": "HBaKgLOFsoP+pykAAA==", "includePromotedContent": true, "withCommunity": true, "withSuperFollowsUserFields": true, "withDownvotePerspective": false, "withReactionsMetadata": false, "withReactionsPerspective": false, "withSuperFollowsTweetFields": true, "withVoice": true, "withV2Timeline": false, "__fs_dont_mention_me_view_api_enabled": false, "__fs_interactive_text_enabled": false, "__fs_responsive_web_uc_gql_enabled": false } Entonces, lo que no entiendo aquí es u7I0lIRjA96yhblCP2akgA en el enlace y el cursor en las variables. ¿De donde viene esto? ¿Cómo pasan a la API qué tweets en particular deben cargarse? ¿Cómo construiría uno esta solicitud por sí mismo?