<reponame>Woahisme/final_project

import json

from facebook_scraper import get_profile
#pass through name from webpage once issue is fixed
json_data = get_profile("passparam", cookies="./fbcookies.json")

# json_object = json.loads(json_data)

json_formatted = json.dumps(json_data, indent = 2)

print(json_formatted)

with open("fb_info.json", "w") as outfile:
    json.dump(json_data, outfile, indent = 2)
import json

from facebook_scraper import get_profile
#pass through name from webpage once issue is fixed
json_data = get_profile("passparam", cookies="./fbcookies.json")

# json_object = json.loads(json_data)

json_formatted = json.dumps(json_data, indent = 2)

print(json_formatted)

with open("fb_info.json", "w") as outfile:
    json.dump(json_data, outfile, indent = 2)
#pass through name from webpage once issue is fixed # json_object = json.loads(json_data)