Closed ejfox closed 2 years ago
This was an error on my part. The reason 'user_selection_media' was not defined is because I named it incorrectly. Now fixed!
Works great now, thank you!
@jordanwildon Actually, I ran into the same error again when trying to scrape forwards from discovered channels. Scraping a single channel's forwards worked great though.
Forwards scraped successfully.
Do you also want to scrape forwards from the discovered channels? (y/n)y
Scraping forwards from channels discovered in convoytodc22 ...
Dr. Vladimir Zelenko (Zelenko Protocol) >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Nicholas Veniamin >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
The Vigilant Fox 🦊 >>> Dr. Vladimir Zelenko (Zelenko Protocol)
The Vigilant Fox 🦊 >>> Dr. Vladimir Zelenko (Zelenko Protocol)
AprilMossTV >>> Dr. Vladimir Zelenko (Zelenko Protocol)
We The Media ⭐️⭐️⭐️ >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Project Veritas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Chief Nerd >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Seth Keshel - "Captain K" >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dr. Vladimir Zelenko (Zelenko Protocol) >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Robert W Malone, MD >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Health Ranger >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Publius >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dr. Vladimir Zelenko (Zelenko Protocol) >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Chief Nerd >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Publius >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Publius >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dr. Lynn Fynn’s Science Enlightenment Channel & Stuff >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dr. Pinkie Feinstein >>> Dr. Vladimir Zelenko (Zelenko Protocol)
KanekoaTheGreat >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Chief Nerd >>> Dr. Vladimir Zelenko (Zelenko Protocol)
KanekoaTheGreat >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Seth Keshel - "Captain K" >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
KanekoaTheGreat >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Charlie Kirk >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Covid Truth Network >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Ron Watkins [CodeMonkeyZ] >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Chief Nerd >>> Dr. Vladimir Zelenko (Zelenko Protocol)
KanekoaTheGreat >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dr. Vladimir Zelenko (Zelenko Protocol) >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Ron Watkins [CodeMonkeyZ] >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Blue-Eyes Zone >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Covid Truth Network >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dschlopes >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Robert W Malone, MD >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dr. Vladimir Zelenko (Zelenko Protocol) >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Robert W Malone, MD >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
General Flynn ⭐️⭐️⭐️ >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Chief Nerd >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Ron Watkins [CodeMonkeyZ] >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Ron Watkins [CodeMonkeyZ] >>> Dr. Vladimir Zelenko (Zelenko Protocol)
CRAIG KELLY MP - Leader United Australia Party - keeping the bastards honest. >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dr. Vladimir Zelenko (Zelenko Protocol) >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dr. Vladimir Zelenko (Zelenko Protocol) >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dr. Vladimir Zelenko (Zelenko Protocol) >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Ron Watkins [CodeMonkeyZ] >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dr. Vladimir Zelenko (Zelenko Protocol) >>> Dr. Vladimir Zelenko (Zelenko Protocol)
KanekoaTheGreat >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Publius >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Publius >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Ron Watkins [CodeMonkeyZ] >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
JasonNelson4Texas >>> Dr. Vladimir Zelenko (Zelenko Protocol)
KanekoaTheGreat >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Official Plandemic >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Dr. Vladimir Zelenko (Zelenko Protocol) >>> Dr. Vladimir Zelenko (Zelenko Protocol)
Traceback (most recent call last):
File "<string>", line 119, in new_main
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/client/users.py", line 319, in get_entity
channels = (await self(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/client/users.py", line 30, in __call__
return await self._call(self._sender, request, ordered=ordered)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/client/users.py", line 84, in _call
result = await future
telethon.errors.rpcerrorlist.ChannelPrivateError: The channel specified is private and you lack permission to access it. Another reason may be that you were banned from it (caused by GetChannelsRequest)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/ejfox/Desktop/telegram-attempt-4/Telepathy/telepathy.py", line 49, in <module>
exec(open("forwards.py").read())
File "<string>", line 166, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "<string>", line 157, in new_main
NameError: name 'user_selection_media' is not defined
Fixed! Same issue as before, but with error handling, needed to be more thorough with testing before updating it before!
Updated with the latest, got further than before, but hit a new error.
I wish I knew Python better so I could submit fixes as PRs instead of endless bugs, I really appreciate your help- let me know if there is anything I can do to be helpful.
Do you also want to scrape forwards from the discovered channels? (y/n)y
Scraping forwards from channels discovered in convoytodc22 ...
Traceback (most recent call last):
File "/Users/ejfox/Desktop/telegram-attempt-4/Telepathy/telepathy.py", line 49, in <module>
exec(open("forwards.py").read())
File "<string>", line 166, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "<string>", line 114, in new_main
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/requestiter.py", line 58, in __anext__
if await self._init(**self.kwargs):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/client/messages.py", line 27, in _init
self.entity = await self.client.get_input_entity(entity)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/client/users.py", line 437, in get_input_entity
await self._get_entity_from_string(peer))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/telethon/client/users.py", line 574, in _get_entity_from_string
raise ValueError(
ValueError: Cannot find any entity corresponding to "BH BL Parents For Choice"
~/Desktop/telegram-attempt-4/Telepathy main [?] via 🐍 v3.9.10 // 14m14s
✗
Hey Jordan,
Have been still trying to get this running locally. I've tried 3 times starting from scratch and re-cloning and setting up the repo but I consistently get errors when trying to scrape forwarded messages and would love your help figuring out what I am doing wrong.
OS X 11.6.1 + Python 3.9.10
I tried to use a more recent version of Telethon by updating
requirements.txt
so thatTelethon==1.24.0
but I still get the same error. Any help deeply appreciated!