maigret
maigret copied to clipboard
Maigret does not save a PDF reports
Checklist
- [v] I'm reporting a bug in Maigret functionality
- [v] I've checked for similar bug reports including closed ones
- [v] I've checked for pull requests that attempt to fix this bug
Description
Info about Maigret version you are running and environment (--version, operation system, ISP provider):
maigret 0.4.3
Socid-extractor: 0.0.23
Aiohttp: 3.8.1
Requests: 2.27.1
Python: 3.8.10
How to reproduce this bug (commandline options / conditions):
- Maigret searches the sites in the normal mode, without errors.
- Maigret does not save a reports (pdf).
- Only empty file report_username.pdf is created.
- HTML reports saved normally
Errors at the end of execution (I don't know if they are the cause of the problem):
/usr/local/lib/python3.8/dist-packages/dateutil/parser/_parser.py:1207: UnknownTimezoneWar ning: tzname CDT identified but not understood. Pass tzinfos argument in order to corre ctly return a timezone-aware datetime. In a future version, this will raise an exception.
warnings.warn("tzname {tzname} identified but not understood. "
Traceback (most recent call last):
File "/usr/local/bin/maigret", line 8, in
Hey, please, specify the username you've searched for.
@soxoj My username as you see it.
I am unable to reproduce a crash of report creation for now, only unknown timezone warning:
[-] Generating report info...
/usr/local/lib/python3.9/site-packages/dateutil/parser/_parser.py:1207: UnknownTimezoneWarning: tzname CDT identified but not understood. Pass `tzinfos` argument in order to correctly return a timezone-aware datetime. In a future version, this will raise an exception.
warnings.warn("tzname {tzname} identified but not understood. "
[-] HTML report on all usernames saved in /tmp/report_Alexell_plain.html
Could you attach list of you packages with versions got with pip3 freeze > pkgs.txt? I'll try to reproduce your full environment.
In your screenshot, i see message about html report. My html report is saved normally with this username. A PDF report is not saved with the same username (maigret alexell --pdf command).
I am attaching what you asked for.
pkgs.txt
I guess the problem is caused by http error while xhtml2pdf trying to download and render some profile image by URL. But I still counldn't reproduce it :(
Let's try to localize the site. Is the following command fails with crash?
maigret alexell --pdf --retries 0 --top-sites 100 --no-recursion
If yes, please send the console output.
The PDF report for this command is generated normally. But the program execution time was short and the report turned out to be much shorter than the html-report was after running without additional arguments. Apparently, there is still some kind of problem site, but the program does not reach it in the last launch option.
Well, so let's try different modes :)
maigret alexell --pdf --retries 0 -a --no-recursionmaigret alexellpro --pdf --retries 0 -a --no-recursion
- After execution, we have the same errors that were at the very beginning and a report with a size of 0 bytes.
- The report was saved normally.
Okay, let's increase count of sites step-by-step, e.g.:
maigret alexell --pdf --retries 0 -a --no-recursion --top-sites 200
Please, attach the text file with a full console output after reproducing the error.
Thanks, got it, let's check the following sites:
maigret alexell --site Flickr --site Pastebin --site BuzzFeed --site Tinder --site MixCloud --site BitBucket --site last.fm --site Gravatar --site uID.me --site Paypal --site Kik --pdf
With these sites, the report was saved normally.