sockysec / Telerecon

A reconnaissance framework for researching and investigating Telegram.
830 stars 115 forks source link

Make the userscrapy.py more robust #12

Closed NeonBubbles closed 10 months ago

NeonBubbles commented 10 months ago

Avoid the Errors that may occur and interrupt the scrapy process.

  1. 'Channel' object has no attribute 'first_name' post.sender might be a Channel entity
  2. 'NoneType' object has no attribute 'sender' original_message might be a NoneType object.
NeonBubbles commented 10 months ago

I haven't encountered a situation where post.sender is NoneType, but just to be safe, I've added a try-except statement there.