Skip to content

Instantly share code, notes, and snippets.

@cristianzsh
Created October 27, 2021 19:49
Show Gist options
  • Save cristianzsh/5714fb71f932b240fb88725739f9462d to your computer and use it in GitHub Desktop.
Save cristianzsh/5714fb71f932b240fb88725739f9462d to your computer and use it in GitHub Desktop.
OSINT: Captura de posts no Facebook.
#!/usr/bin/python3
"""
Ferramenta para captura de posts no Facebook.
"""
from facebook_scraper import get_posts
username = input("Digite o nome do usuário: ")
output = input("Salvar o resultado? [S/n] ")
for post in get_posts(username, pages=1):
print(post["text"])
if output == "S":
with open("{}.txt".format(username), "a") as f:
f.write(post["text"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment