Skip to content

Commit

Permalink
skeet length fix
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvalal committed Oct 6, 2023
1 parent d739865 commit 7897701
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions paperbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ def get_arxiv_feed(subject: str):
"link": entry.link.strip(),
"description": entry.description.replace("<p>", "")
.replace("</p>", "")
.strip()[:296]
.replace("\n", " ")
.strip()
.replace("\n", " ")[:296]
+ "\n📈🤖",
}
for entry in feed.entries
Expand All @@ -173,7 +173,7 @@ def main():
new_pull = get_arxiv_feed("stat.ME")
# Append new data to existing data
for k, v in new_pull.items():
if k not in stat_me_archive: # if not already posted
if k not in stat_me_archive: # if not already posted
create_post(text=f"{v['title']}\n{v['link']}\n{v['description']}")
time.sleep(random.randint(300, 1200))
print(f"posted {k}")
Expand Down Expand Up @@ -202,6 +202,7 @@ def main():
with open("econ_em_draws.json", "w") as f:
json.dump(econ_em_archive, f)


# %%
if __name__ == "__main__":
main()

0 comments on commit 7897701

Please sign in to comment.