HoloArchivists / twspace-dl

A python module to download twitter spaces.
GNU General Public License v2.0
473 stars 78 forks source link

Fix get user ID from user screen name due to API shutdown #80

Closed mikelei8291 closed 1 year ago

mikelei8291 commented 1 year ago

The original API (https://cdn.syndication.twimg.com/widgets/followbutton/info.json) was shutdown by Twitter recently, causing the function user_id() not being able to retrieve the user ID by the user's screen name, and ultimately making the program to crash.

This PR replaces the old API with a new one to make this program continue to work. It was tested locally and everything seemed working fine.

This should also fix #79.

Ryu1845 commented 1 year ago

Nice ! Thank you ! lgtm

mikelei8291 commented 1 year ago

@Ryu1845 Could you also make a release on PyPI? Since this is a fatal issue and there are people who only install from PyPI.

Ryu1845 commented 1 year ago

Oh yes that's true, will do.