Skip to content

Commit 5f11cb0

Browse files
changed article count
1 parent 3f92fb1 commit 5f11cb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
scheduler = TaskScheduler()
2828

2929
# this allows me to send 30 tweets over a period of 24 hours
30-
FIFTY_MINUTES = 3000
30+
FIFTY_MINUTES = 1500
3131

3232

3333
async def scheduled_task():

src/tasks/schedulers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def __init__(self):
8080
self._tweepy_api = tweepy.API(auth=auth)
8181
self._article_queue = Queue()
8282
self._tweet_queue = Queue()
83-
self._article_count: int = 100
83+
self._article_count: int = 10
8484
self._error_delay: int = FIVE_MINUTE
8585
self._max_status_length: int = 250
8686
self._count: int = 0
@@ -132,7 +132,7 @@ async def do_create_tweet(self, article: ArticleData) -> dict[str, str]:
132132
hashtags = ""
133133

134134
# Create the tweet text with hashtags
135-
_title: str = "Financial & Business News API"
135+
_title: str = "https://eod-stock-api.site"
136136
_crop_len: int = self._max_status_length - len(_title) - 6 - len(hashtags)
137137
tweet_body = f"{article.sentiment.article_tldr[:_crop_len]}" if article.sentiment and article.sentiment.article_tldr else article.title
138138

0 commit comments

Comments
 (0)