Refactoring and modularization
Since the last release the main improvements have been:
* Raise a custom exception instead of sysexiting when confronted with a wrong
CSV file.
* Change prints for logger messages.
* Modularize the "get_tweets_from_csv" dividing it into 3 functions to
provide more isolated functions. Now this function makes use of
"get_tweet_from_csv_line", which returns a single Tweet object when
provided with two lists representing the contents of a CSV header and
one of its entries. There is also a "raw" alternative of that
function, which works with raw lines and converts them to lists to then
call the "non-raw" version.
Showing
Please
register
or
sign in
to comment