kevinzg / facebook-scraper

Scrape Facebook public pages without an API key
MIT License
2.27k stars 611 forks source link

Small glitches in JSON output #1012

Open Shohreh opened 1 year ago

Shohreh commented 1 year ago

Hello,

I noticed a couple of issues in the JSON output:

,, → ,

}, ] → } ]

Cheers,

PS:

c:\>facebook-scraper -fmt json -f 2023-05-08.test.json -g 123 -p 5 --encoding utf-8 -k post_id,text,time,timestamp
c:\Python38-32\lib\site-packages\facebook_scraper\facebook_scraper.py:855: UserWarning: Facebook language detected as fr_FR - for best results, set to en_US
  warnings.warn(
c:\Python38-32\lib\site-packages\dateparser\freshness_date_parser.py:76: PytzUsageWarning: The localize method is no longer necessary, as this time zone supports the fold attribute (PEP 495). For more details on migrating to a PEP 495-compliant implementation, see https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html
  now = self.get_local_tz().localize(now)
cuckoo711 commented 9 months ago

如果您的代码或依赖的库中使用了pytz,建议您根据提供的链接https://pytz-deprecation-shim.readthedocs.io/en/latest/migration.html进行迁移,以适应PEP 495规范。通常,这意味着您可能需要更新代码中pytz的使用方法,或者更新使用了pytz的依赖库到一个更加新的版本。

注意,这些只是警告,不是错误。这意味着您的程序仍然可以正常运行,但是为了更好的兼容性和未来的稳定性,考虑按照建议进行修正