Download fb_comments/__init__.py from bep40/fb-comments-crawler-space: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/spaces/bep40/fb-comments-crawler-space/resolve/main/fb_comments/__init__.py
- Command line
-
hf download hf://spaces/bep40/fb-comments-crawler-space/fb_comments/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/bep40/fb-comments-crawler-space/resolve/main/fb_comments/__init__.py
1.16 kB
| """Facebook Graph API comment crawler. | |
| Pulls 100% of comments (with pagination and replies) from Facebook posts you | |
| have permission to read, and exports commenter info (name + UID/PSID) to | |
| CSV/JSON. | |
| Scopes: | |
| - Reading comments on posts of Pages the logged-in user manages -> works | |
| out of the box in Development app mode, no App Review needed. | |
| - Reading comments on arbitrary public pages (not managed by you) -> requires | |
| Page Public Content Access + App Review (Advanced Access). Out of scope here, | |
| the tool will tell you if a post is not readable. | |
| """ | |
| from .oauth import catch_access_token, exchange_code, exchange_long_lived, list_pages, pick_page_token | |
| from .crawler import CommentCrawler, CommentCrawlerError, RateLimitError | |
| from .export import ExportError, export, parse_post_identifier, resolve_post_id | |
| from .cli import main | |
| __all__ = [ | |
| "catch_access_token", | |
| "exchange_code", | |
| "exchange_long_lived", | |
| "list_pages", | |
| "pick_page_token", | |
| "CommentCrawler", | |
| "CommentCrawlerError", | |
| "RateLimitError", | |
| "export", | |
| "ExportError", | |
| "parse_post_identifier", | |
| "resolve_post_id", | |
| "main", | |
| ] | |
| __version__ = "1.0.0" |