Help for a beginner? #893
Replies: 2 comments 3 replies
-
This is code I first wrote that is basic but works: -- coding: utf-8 --""" @author: wilson """ import os groupname = "1988673888048607" path_0 = "C:/scraper/FB Groups/" path_1 = groupname myfile = (path_0+path_1+".csv") file1 = open(myfile, "w", encoding='utf-8') cookies_file = ("C:/scraper/FB Groups/cookies.json") if ( not os.path.isfile(myfile)): print (".", "\n") from facebook_scraper import * enable_logging() for post in get_posts(group=groupname, page_limit=200, cookies=cookies_file, file1 = open(myfile, "a", encoding='utf-8') |
Beta Was this translation helpful? Give feedback.
-
Any trouble just let me know.
wilson (at) wilsonlogan (dot) com
From: Dennis Lenhardt ***@***.***>
Sent: 11 January 2023 12:11
To: kevinzg/facebook-scraper ***@***.***>
Cc: evildrome ***@***.***>; Comment ***@***.***>
Subject: Re: [kevinzg/facebook-scraper] Help for a beginner? (Discussion #893)
Awesome, I'll look into it, thank you for sharing!!
—
Reply to this email directly, view it on GitHub <#893 (reply in thread)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABKRBAOKZWUUXV4I55RYTOLWR2PMJANCNFSM6AAAAAAQTOEGTU> .
You are receiving this because you commented. <https://github.com/notifications/beacon/ABKRBAOA2HPSZ2DUDR3Q273WR2PMJA5CNFSM6AAAAAAQTOEGTWWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAI4FG4.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I am VERY new to coding and Python and would love to use this bot, unfortunately I can't get it running yet.
Is it possible that someone is helping me out with a step-by-step guide for dummies on how to run the bot? Or give me a hint on what I'm doing wrong?
Here's what I've done and tried yet:
It always gives back "SyntaxError: invalid syntax" or "ImportError: attempted relative import with no known parent package", no matter what I do.
What I would like to do:
I want to scrape ALL posts of a private Facebook profile, incl. caption, link to the post, number of reactions, publishing date and information about the creative that's being used, if that's possible.
Beta Was this translation helpful? Give feedback.
All reactions