Created
October 27, 2021 19:49
-
-
Save cristianzsh/5714fb71f932b240fb88725739f9462d to your computer and use it in GitHub Desktop.
OSINT: Captura de posts no Facebook.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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