34db837a9e
feat: x.com migration + public API for cookie-based auth
...
- migrate all API URLs from twitter.com to x.com
- add SetBearerToken, SetHTTPClient, SetLoggedIn public methods
- accept 202/204 status codes in handleResponse
- module path -> src.cultist.club/lain/twitter-scrapper
2026-05-21 18:54:10 +03:00
Brendan Playford
388445d4c2
feat: add IsBlueVerified to profile responses
...
Add support for Twitter's blue verification status in profile responses:
- Add IsBlueVerified field to user struct in GetProfile response
- Update parseProfile and parseProfileV2 to include blue verification status
- Add ProfileImageShape and HasGraduatedAccess fields to profile responses
This change ensures the API correctly returns blue verification status for both direct profile queries and timeline responses.
2025-01-22 11:14:03 -08:00
Brendan Playford
7226460e05
feat(types): extend Twitter profile data structures
...
- Add new fields to Profile struct (IsBlueVerified, MediaCount, etc.)
- Extend legacyUser struct with additional Twitter API fields
- Add new types for extended profile, verification and highlights info
- Update profile parsing to include new metrics
2025-01-22 11:05:38 -08:00
Valentine
3bfec2211f
fix error tests
2024-08-09 14:21:56 +03:00
Valentine
a611486a08
add GetProfileByID method
2024-08-09 14:03:05 +03:00
Valentine
5dee67c2da
add following & followed by to profile
2024-02-21 06:21:49 +03:00
Joaco Esteban
bd65223b41
Add Sensitive field to Profile struct
2024-02-14 12:27:29 +01:00
Alexander Sheiko
c07bd1d1d4
improve request
2023-06-01 23:05:37 +03:00
Alexander Sheiko
66780eb801
Remove deprecated functions
...
Removed global default scraper
2023-05-11 14:15:56 +03:00
Alexander Sheiko
bfb4020597
Deprecate default scraper
2022-05-04 11:55:12 +03:00
Alexander Sheiko
9608d12cf3
Move cacheIDs
2021-04-23 10:41:22 +03:00
Alexander Sheiko
5032ecd29d
Add SearchProfiles
...
Minor changes and fixes
2021-04-22 21:38:49 +03:00
Alexander Sheiko
6c4a1cc054
Code optimization
2021-01-28 11:12:20 +02:00
Michael
9bbc7aa2ab
check if ScreenName in response is empty instead of Name, since Name can be unset by user.
2021-01-25 21:57:01 +07:00
Michael
d33882ff94
replace GetProfile with single call and improve error handling to fetch private profiles
2021-01-25 10:31:41 +07:00
Alexander Sheiko
6bf65cd482
Add Scraper object
2020-12-12 23:33:57 +02:00
Alexander Sheiko
edad8f6393
Total refactoring
...
Used guest frontend API
BREAKING CHANGE: remove tweet.HTML property
Loading more information
Minor fixes and changes
2020-12-11 20:58:49 +02:00
JustHumanz
341e1de6d0
add http proxy support
2020-12-03 21:42:16 +07:00
Alexander Sheiko
2f2b073de7
Quick dirty fix profile
...
Not all fields are available...
2020-08-13 17:38:46 +03:00
Alexander Sheiko
c6f9351149
Extended user validity check
2020-08-10 14:08:35 +03:00
Alexander Sheiko
87fdf1c10e
Add banner photo in profile
2020-06-15 15:17:08 +03:00
Alexander Sheiko
7e8d3badb4
Add user ID for profile
2020-06-15 15:06:07 +03:00
Alexander Sheiko
5a6607f6c4
Add IsPrivate and IsVerified for profile
2020-06-15 14:58:18 +03:00
Alexander Sheiko
c12927172f
Add newRequest function with common headers
2020-06-15 11:59:30 +03:00
Alexander Sheiko
2dc80b95cf
Fix get profile
2020-06-15 11:42:12 +03:00
Alexander Sheiko
a34a14d25a
Fix some golangci-lint warnings
...
Minor changes
2020-05-14 21:52:55 +03:00
xisco
1c49fea3ef
change goquery.NewDocument deprecated method and add language header
2020-05-14 18:00:43 +02:00
Nomadic
01325ea5e8
Add get profile
2019-09-21 10:59:45 +03:00