bep40's picture
Upload fb_comments/__init__.py
ccd9162 verified
Raw History Blame Contribute Delete
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"