DEV Community

Discussion on: Scrape ResearchGate all institution members in Python

Collapse
 
datum_geek profile image
Mohamed Hachaichi πŸ‡ΊπŸ‡¦

One small questions: how to save the output as a dataframe (pandas)?

Thread Thread
 
dmitryzub profile image
Dmitriy Zub β˜€οΈ • Edited
df = pd.DataFrame(institution_memebers)
Enter fullscreen mode Exit fullscreen mode

If you need to save it:

# https://stackoverflow.com/a/45141782/15164646
df.to_csv("your_csv_filename.csv", index=False)
Enter fullscreen mode Exit fullscreen mode