Merge pull request #8 from akshitdevops/akshit

There are some changes in encoding part of the code
master 1.6
Ayush Sharma 2019-07-25 13:52:58 +05:30 committed by GitHub
commit 8437ca7b65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import helpers
import requests import requests
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
from pathlib import Path from pathlib import Path
import base64
def getTweets(): def getTweets():
""" Get list of tweets, with tweet ID and content, from configured Twitter account URL. """ Get list of tweets, with tweet ID and content, from configured Twitter account URL.
@ -106,7 +106,7 @@ def tootTheTweet(tweet):
else: else:
tweet['text'].encoding('utf-8') tweet['text'].encode('utf-8')
tweet_check = open(tweet_check_file_path, mode='w') tweet_check = open(tweet_check_file_path, mode='w')
tweet_check.write(tweet['text']) tweet_check.write(tweet['text'])