CLI command for get_profile #524
-
I can't find anything about getting the profile information through the CLI. I tried creating my own script and importing facebook_scraper into it, but then got some errors about relative imports with no known parent package; and I'm not much of a python guy, so I'm just hoping there is an easy CLI option available. |
Beta Was this translation helpful? Give feedback.
Answered by
neon-ninja
Oct 20, 2021
Replies: 1 comment
-
This commit (80c4323) adds a CLI option for getting profiles with CLI, sample usage and output:
{
"cover_photo": "https://scontent.fakl8-1.fna.fbcdn.net/v/t31.18172-8/fr/cp0/e15/q65/19575079_10103832396388711_8894816584589808440_o.jpg?_nc_cat=109&ccb=1-5&_nc_sid=ed5ff1&_nc_ohc=B5vwvIZ5AQ4AX9T6gqS&_nc_ht=scontent.fakl8-1.fna&oh=00dc4a12a33919650539c6a43d013945&oe=6194C398",
"profile_picture": "https://scontent.fakl8-1.fna.fbcdn.net/v/t1.6435-1/fr/cp0/e15/q65/79515135_10111007623880301_5111576226921709568_n.jpg?_nc_cat=1&ccb=1-5&_nc_sid=dbb9e7&_nc_ohc=G6Bw8Tf6pkUAX8OyDkn&_nc_ht=scontent.fakl8-1.fna&oh=7fc586f388621461b2213a349f783166&oe=619618D6",
"id": "4",
"Name": "Mark Zuckerberg",
"Work": "Chan Zuckerberg Initiative\nDecember 1, 2015 - Present\nFacebook\nFounder and CEO\nFebruary 4, 2004 - Present\nPalo Alto, California\nBringing the world closer together.",
"Education": "Harvard University\nComputer Science and Psychology\nAugust 30, 2002 - April 30, 2004\nPhillips Exeter Academy\nClassics\nClass of 2002\nArdsley High School\nHigh School\nSeptember 1998 - June 2000",
"Places Lived": "Palo Alto, California\nCurrent City\nDobbs Ferry, New York\nHometown",
"About": "I'm trying to make the world a more open place.",
"Favorite Quotes": "\"Fortune favors the bold.\"\n- Virgil, Aeneid X.284\n\n\"All children are artists. The problem is how to remain an artist once you grow up.\"\n- Pablo Picasso\n\n\"Make things as simple as possible but no simpler.\"\n- Albert Einstein"
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
neon-ninja
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This commit (80c4323) adds a CLI option for getting profiles with CLI, sample usage and output:
facebook-scraper --profile zuck --format json -f -