this repo has no description
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix up stuff

+3 -5
+3 -5
get_posts.py
··· 178 178 try: 179 179 logger.info("Parsing follower graph file...") 180 180 follow_df = pd.read_parquet(graph_file) 181 + # Limit to only accounts following between 100 and 1000 followers 182 + follow_df = follow_df.loc[follow_df["follows"].str.len().between(100, 1000)] 181 183 except Exception as e: 182 184 logger.error(f"Failed to open follow graph file, {graph_file}\n{e}") 183 185 sys.exit(1) ··· 189 191 to_explore[acct] = 0 190 192 to_explore[acct] += 1 191 193 192 - accts = [ 193 - (acct, follows) 194 - for acct, follows in to_explore.items() 195 - if follows >= FOLLOWER_THRESHOLD 196 - ] 194 + accts = [(acct, follows) for acct, follows in to_explore.items()] 197 195 accts.sort(key=lambda x: -1 * x[1]) 198 196 199 197 logger.info(f"Num of accounts to retrieve posts from: {len(accts)}")