Skip to content

Commit

Permalink
Merge pull request #35 from markowanga/develop
Browse files Browse the repository at this point in the history
Release version v1.2.1
  • Loading branch information
markowanga authored Feb 6, 2021
2 parents 0e55c66 + 4caac35 commit 1025d75
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: Python package
on:
pull_request:
branches: [ master, develop ]
paths-ignore:
- 'README.md'
schedule:
- cron: '0 0 * * *'

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ name: Python package & deploy
on:
push:
branches: [ master ]
paths-ignore:
- 'README.md'

jobs:
deploy:
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ work and users must report bugs as issues.
pip install -U stweet
```

## Donate
If you want to sponsor me, in thanks for the project, please send me some crypto:

|Coin|Wallet address|
|---|---|
|Bitcoin (segwit)|3EajE9DbLvEmBHLRzjDfG86LyZB4jzsZyg|
|Etherum|0xE43d8C2c7a9af286bc2fc0568e2812151AF9b1FD|

## Basic usage

To make a simple request the scrap **task** must be prepared. The next task should be processed by **runner**.
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="stweet",
version="1.2.0",
version="1.2.1",
author="Marcin Wątroba",
author_email="markowanga@gmail.com",
description="Package to scrap tweets",
Expand Down
1 change: 0 additions & 1 deletion stweet/search_runner/parse/base_tweet_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def parse_tweets(self, response_text: str) -> List[Tweet]:

@staticmethod
def _tweet_dict_to_tweet_object(tweet) -> Tweet:
print(json.dumps(tweet))
return Tweet(
created_at=Arrow.fromdatetime(parser.parse(tweet['created_at'])),
id_str=tweet['id_str'],
Expand Down
1 change: 0 additions & 1 deletion stweet/search_runner/search_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def _is_end_of_scrapping(self) -> bool:
def _execute_next_tweets_request(self):
request_params = self._get_next_request_details()
response = self.web_client.run_request(request_params)
# print(response.text)
if response.is_token_expired():
self._refresh_token()
elif response.is_success():
Expand Down

0 comments on commit 1025d75

Please sign in to comment.