6 Commits

Author SHA1 Message Date
msramalho
7b63b9f349 Bump version to v1.0.4 for release 2023-03-13 10:08:42 +00:00
msramalho
e1ac3b5057 fixing not founds 2023-03-13 10:08:35 +00:00
msramalho
f962878354 Bump version to v1.0.3 for release 2023-03-13 09:54:14 +00:00
msramalho
6b4ceaae61 attempts at fixing CLI issues #18 2023-03-13 09:54:06 +00:00
msramalho
c4aa5a6cc5 Bump version to v1.0.2 for release 2023-02-13 16:55:27 +00:00
msramalho
ad9cac8cdd readme fix 2023-02-13 16:54:20 +00:00
5 changed files with 14 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
# TikTok hashtag analysis toolset
The tool helps to download posts and videos from TikTok for a given set of hashtags over a period of time. Users can create a growing database of posts for specific hashtags which can then be used for further hashtag analysis. It uses the [tiktok-scraper](https://github.com/drawrowfly/tiktok-scraper) Node package to download the posts and videos.
[![PyPI version](https://badge.fury.io/py/tiktok-hashtag-analysis.svg)](https://badge.fury.io/py/tiktok-hashtag-analysis
[![PyPI version](https://badge.fury.io/py/tiktok-hashtag-analysis.svg)](https://badge.fury.io/py/tiktok-hashtag-analysis)
## Pre-requisites
1. Make sure you have Python 3.6 or a later version installed
@@ -16,7 +16,7 @@ You should now be ready to start using it.
## About the tool
### Command-line arguments
```
python3 tiktok-hashtag-analysis --help
tiktok-hashtag-analysis --help
usage: tiktok-hashtag-analysis [-h] [-t [T ...]] [-f F] [-p] [-v] [-ht HASHTAG] [-n NUMBER] [-plt] [-d] {download,frequencies}
Analyze hashtags within posts scraped from TikTok.

View File

@@ -1,15 +1,20 @@
import setuptools
from setuptools import setup, find_packages
from tiktok_hashtag_analysis.version import __version__
with open("README.md", "r", encoding="utf-8") as file:
long_description = file.read()
setuptools.setup(
setup(
name="tiktok-hashtag-analysis",
version=__version__,
author="Bellingcat",
author_email="tech@bellingcat.com",
packages=["tiktok_hashtag_analysis"],
package_data={
"tiktok_hashtag_analysis": [
"logging.config",
]
},
description="Analyze hashtags within posts scraped from TikTok",
long_description=long_description,
long_description_content_type="text/markdown",
@@ -22,10 +27,10 @@ setuptools.setup(
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3'
],
],
entry_points={
"console_scripts": [
"tiktok_hashtag_analysis=tiktok_hashtag_analysis.__main__:main",
"tiktok-hashtag-analysis=tiktok_hashtag_analysis.__main__:main",
]
},
)

View File

@@ -13,8 +13,6 @@ from typing import List, Tuple, Dict, Any
import matplotlib.pyplot as plt
import matplotlib.ticker as mtick
import seaborn as sns
from tiktok_hashtag_analysis.file_methods import check_file, check_existence
from tiktok_hashtag_analysis.global_data import IMAGES, FILES
warnings.filterwarnings("ignore", message="Glyph (.*) missing from current font")
sns.set_theme(style="darkgrid")

View File

@@ -11,9 +11,9 @@ import os
import time
from typing import List, Tuple, Dict, Any, Optional
from tempfile import TemporaryDirectory
import tiktok_hashtag_analysis.global_data
from tiktok_hashtag_analysis import global_data
import tiktok_hashtag_analysis.file_methods as file_methods
import tiktok_hashtag_analysis.data_methods
from tiktok_hashtag_analysis import data_methods
def get_hashtag_list(file_name: str) -> List[str]:

View File

@@ -3,7 +3,7 @@ _MAJOR = "1"
_MINOR = "0"
# On main and in a nightly release the patch should be one ahead of the last
# released build.
_PATCH = "1"
_PATCH = "4"
# This is mainly for nightly builds which have the suffix ".dev$DATE". See
# https://semver.org/#is-v123-a-semantic-version for the semantics.
_SUFFIX = ""