junhoyeo / threads-api

Unofficial, Reverse-Engineered Node.js/TypeScript client for Meta's Threads. Web UI Included.
https://threads.junho.io
MIT License
1.58k stars 134 forks source link

Rename `getProfilePage` -> `_getCleanedProfileHTML` #226

Closed junhoyeo closed 11 months ago

junhoyeo commented 11 months ago

I don't think everyone got this right, but this was actually an internal method added at https://github.com/junhoyeo/threads-api/pull/106/files#diff-a0ae255b36f5cb107ebf68b94c00973a564b5dd5450e3c041cf8b44ecd0233b0R181 (to fetch raw doc as HTML, but cleaned)

Think it'll be better to rename getProfilePage to _getProfileHTML or something more direct

Originally posted by @junhoyeo in https://github.com/junhoyeo/threads-api/issues/223#issuecomment-1643204480