Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,9 @@ def get_facebook_info(df):
|
|
| 75 |
profile_info = scrape_facebook(url)
|
| 76 |
|
| 77 |
if profile_info:
|
| 78 |
-
|
|
|
|
|
|
|
| 79 |
else:
|
| 80 |
print(f"No data returned for profile: {url}")
|
| 81 |
except Exception as e:
|
|
|
|
| 75 |
profile_info = scrape_facebook(url)
|
| 76 |
|
| 77 |
if profile_info:
|
| 78 |
+
# Create a new DataFrame with the profile info and concat it
|
| 79 |
+
new_row = pd.DataFrame([profile_info])
|
| 80 |
+
result_df = pd.concat([result_df, new_row], ignore_index=True)
|
| 81 |
else:
|
| 82 |
print(f"No data returned for profile: {url}")
|
| 83 |
except Exception as e:
|