Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

[Question] still 404 error.. #101

Open
eo4929 opened this issue Nov 9, 2020 · 7 comments
Open

[Question] still 404 error.. #101

eo4929 opened this issue Nov 9, 2020 · 7 comments

Comments

@eo4929
Copy link

eo4929 commented Nov 9, 2020

Has anyone solved the 404 error (recent endpoint issue)?
I'd appreciate it if you could tell me how to do it.

Thank you for your reply !

@Solin1998
Copy link

用不了了 换其他项目

@DV777
Copy link

DV777 commented Nov 12, 2020

Same problem here... hopefully someone will manage to fix it soon...

@J-t-p
Copy link

J-t-p commented Nov 16, 2020

I found a temporary work around that can be used until the 404 issue is fixed. It involves the requests and bs4 (Beautiful Soup) libraries
`
import requests
from bs4 import BeautifulSoup

contents = requests.get("https://mobile.twitter.com/username")
soup = BeautifulSoup(contents.text, "html.parser")

tweets = soup.find_all("tr", {"class":"tweet-container"})
latest = tweets[0]
print(latest.text)
`

This will give you a list with the html for, if my counting is correct, the last 20 tweets from that account. Obviously, this is not as good of a program as GOT3, but it will help while we wait for the error to be fixed.

A few things to note: 1. You have to use the mobile link. It does not work with the normal link. (This can obviously still be ran on a desktop computer even with the mobile link) 2. You can use .text to print the tweet/store it to a variable without all the html code.

@wandabwa2004
Copy link

Seems there is no solution till now. However, I stumbled upon Twint https://github.com/twintproject/twint that does the same thing. Works like a charm.

@eo4929 eo4929 closed this as completed Dec 24, 2020
@eo4929 eo4929 reopened this Dec 24, 2020
@HeinrichWizardKreuser
Copy link

so 👀, any word on a fix yet?

@enesky
Copy link

enesky commented Dec 5, 2021

still no solution

@sxaxmz
Copy link

sxaxmz commented Apr 23, 2022

Persists no solution

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants