facebook-scraper icon indicating copy to clipboard operation
facebook-scraper copied to clipboard

How would I be able to assign parts of the output of getprofile to variables?

Open SenExus opened this issue 3 years ago • 1 comments

Hey all,

Apologies if this is a simple question to answer, but I was wondering how I could assign a specific part of the output of "getprofile" for instance: a user's name. Would this be possible and if so, how?

Thanks in advance.

SenExus avatar Feb 28 '22 00:02 SenExus

The result is a standard Python dictionary. You can access dictionary keys and assign them to variables like so name = result["name"]

neon-ninja avatar Feb 28 '22 00:02 neon-ninja