mirror of
https://github.com/bellingcat/tiktok-hashtag-analysis.git
synced 2026-06-10 20:38:30 +03:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7b63b9f349 | ||
|
|
e1ac3b5057 | ||
|
|
f962878354 | ||
|
|
6b4ceaae61 |
@@ -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.
|
||||
|
||||
13
setup.py
13
setup.py
@@ -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",
|
||||
]
|
||||
},
|
||||
)
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -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]:
|
||||
|
||||
@@ -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 = "2"
|
||||
_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 = ""
|
||||
|
||||
Reference in New Issue
Block a user