Skip to content

Commit

Permalink
generateReadme: Refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jun 28, 2024
1 parent 9b02cc2 commit acc867a
Show file tree
Hide file tree
Showing 5 changed files with 161 additions and 92 deletions.
48 changes: 24 additions & 24 deletions .github/push_templates_to_algolia.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@
"id": "aa0e3e6f-1260-4452-8abf-7c084e26c8a4",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-28T10:51:16.028264Z",
"iopub.status.busy": "2024-06-28T10:51:16.027798Z",
"iopub.status.idle": "2024-06-28T10:51:16.101633Z",
"shell.execute_reply": "2024-06-28T10:51:16.101047Z"
"iopub.execute_input": "2024-06-28T11:12:11.586206Z",
"iopub.status.busy": "2024-06-28T11:12:11.585741Z",
"iopub.status.idle": "2024-06-28T11:12:11.658561Z",
"shell.execute_reply": "2024-06-28T11:12:11.657933Z"
},
"papermill": {},
"tags": []
Expand Down Expand Up @@ -95,10 +95,10 @@
"id": "cfa97168-63eb-4e8c-89c3-0a5d26f47740",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-28T10:51:16.104388Z",
"iopub.status.busy": "2024-06-28T10:51:16.103905Z",
"iopub.status.idle": "2024-06-28T10:51:16.107613Z",
"shell.execute_reply": "2024-06-28T10:51:16.106983Z"
"iopub.execute_input": "2024-06-28T11:12:11.660964Z",
"iopub.status.busy": "2024-06-28T11:12:11.660760Z",
"iopub.status.idle": "2024-06-28T11:12:11.663910Z",
"shell.execute_reply": "2024-06-28T11:12:11.663405Z"
},
"papermill": {},
"tags": []
Expand Down Expand Up @@ -141,10 +141,10 @@
"id": "7a9c86c2-931d-4113-abbc-31b3f517b6c4",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-28T10:51:16.110187Z",
"iopub.status.busy": "2024-06-28T10:51:16.109826Z",
"iopub.status.idle": "2024-06-28T10:51:16.193603Z",
"shell.execute_reply": "2024-06-28T10:51:16.192898Z"
"iopub.execute_input": "2024-06-28T11:12:11.666485Z",
"iopub.status.busy": "2024-06-28T11:12:11.666104Z",
"iopub.status.idle": "2024-06-28T11:12:11.749421Z",
"shell.execute_reply": "2024-06-28T11:12:11.748726Z"
},
"tags": []
},
Expand Down Expand Up @@ -178,10 +178,10 @@
"id": "c50e96b2-4403-413c-a99a-9243be0c0a04",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-28T10:51:16.196436Z",
"iopub.status.busy": "2024-06-28T10:51:16.196050Z",
"iopub.status.idle": "2024-06-28T10:51:16.943602Z",
"shell.execute_reply": "2024-06-28T10:51:16.942899Z"
"iopub.execute_input": "2024-06-28T11:12:11.752273Z",
"iopub.status.busy": "2024-06-28T11:12:11.751873Z",
"iopub.status.idle": "2024-06-28T11:12:13.258961Z",
"shell.execute_reply": "2024-06-28T11:12:13.258283Z"
},
"tags": []
},
Expand Down Expand Up @@ -230,10 +230,10 @@
"id": "da661ba3-fd15-4abc-bd4f-d13ae77b82b0",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-28T10:51:16.946523Z",
"iopub.status.busy": "2024-06-28T10:51:16.946103Z",
"iopub.status.idle": "2024-06-28T10:51:17.730430Z",
"shell.execute_reply": "2024-06-28T10:51:17.729775Z"
"iopub.execute_input": "2024-06-28T11:12:13.262094Z",
"iopub.status.busy": "2024-06-28T11:12:13.261588Z",
"iopub.status.idle": "2024-06-28T11:12:16.321020Z",
"shell.execute_reply": "2024-06-28T11:12:16.320360Z"
},
"tags": []
},
Expand All @@ -260,10 +260,10 @@
"id": "f1482a8f-4ce5-4e04-93c8-ddd883375d67",
"metadata": {
"execution": {
"iopub.execute_input": "2024-06-28T10:51:17.733341Z",
"iopub.status.busy": "2024-06-28T10:51:17.732878Z",
"iopub.status.idle": "2024-06-28T10:51:17.841601Z",
"shell.execute_reply": "2024-06-28T10:51:17.840960Z"
"iopub.execute_input": "2024-06-28T11:12:16.323707Z",
"iopub.status.busy": "2024-06-28T11:12:16.323509Z",
"iopub.status.idle": "2024-06-28T11:12:16.432628Z",
"shell.execute_reply": "2024-06-28T11:12:16.432061Z"
},
"tags": []
},
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4457,6 +4457,7 @@ We are committed to sharing templates and giving shout outs to the contributors
* [Send users](https://github.com/jupyter-naas/awesome-notebooks/blob/master/Thinkific/Thinkific_Send_users.ipynb)

## TikTok
* [Get trending songs by keyword](https://github.com/jupyter-naas/awesome-notebooks/blob/master/TikTok/TikTok_Get_keyword_trending_songs.ipynb)
* [Get user stats](https://github.com/jupyter-naas/awesome-notebooks/blob/master/TikTok/TikTok_Get_user_stats.ipynb)
* [Get videos stats](https://github.com/jupyter-naas/awesome-notebooks/blob/master/TikTok/TikTok_Get_videos_stats.ipynb)

Expand Down
114 changes: 91 additions & 23 deletions TikTok/TikTok_Get_keyword_trending_songs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
{
"cell_type": "markdown",
"id": "81cc5584",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"<img width=\"8%\" alt=\"TikTok.png\" src=\"https://raw.githubusercontent.com/jupyter-naas/awesome-notebooks/master/.github/assets/logos/TikTok.png\" style=\"border-radius: 15%\">"
]
Expand All @@ -16,45 +19,61 @@
"tags": []
},
"source": [
"# TikTok - Get trending songs by keyword"
"# TikTok - Get trending songs by keyword\n",
"<a href=\"https://bit.ly/3JyWIk6\">Give Feedback</a> | <a href=\"https://github.com/jupyter-naas/awesome-notebooks/issues/new?assignees=&labels=bug&template=bug_report.md&title=TikTok+-+Get+trending+songs+by+keyword:+Error+short+description\">Bug report</a>"
]
},
{
"cell_type": "markdown",
"id": "religious-programmer",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"**Tags:** #tiktok #content #trends #songs"
]
},
{
"cell_type": "markdown",
"id": "1fe9f56e-561c-4f52-aef8-b861c9462107",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"**Author:** [Alex Nodeland](https://www.linkedin.com/in/alexnodeland/)"
]
},
{
"cell_type": "markdown",
"id": "0de144be-594d-463e-9849-696fb2f6d1a8",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"**Last update:** 2024-06-28 (Created: 2024-06-20)"
]
},
{
"cell_type": "markdown",
"id": "31ea7cdb-e10d-43fc-b026-f69249a59736",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"**Description:** This notebook demonstrates how to extract the top trending songs on top trending platform, TikTok, by keyword. You need to create a free account and [rent an Actor](https://console.apify.com/actors/GdWCkxBtKWOsKjdch/input) to start playing with this template."
]
},
{
"cell_type": "markdown",
"id": "d4b89388-5cd5-409a-8169-c53cc8dfab96",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"**References:**\n",
"- [Naas Documentation](https://site.naas.ai/)\n",
Expand All @@ -75,7 +94,10 @@
{
"cell_type": "markdown",
"id": "numeric-mediterranean",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"### Import libraries"
]
Expand All @@ -85,6 +107,7 @@
"execution_count": null,
"id": "potential-surfing",
"metadata": {
"papermill": {},
"tags": []
},
"outputs": [],
Expand All @@ -103,7 +126,10 @@
{
"cell_type": "markdown",
"id": "aggressive-trustee",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"### Setup variables\n",
"\n",
Expand All @@ -121,7 +147,10 @@
{
"cell_type": "markdown",
"id": "323e09ce",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"#### Apify API Token & Query Details"
]
Expand All @@ -130,7 +159,10 @@
"cell_type": "code",
"execution_count": null,
"id": "continuous-melbourne",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"outputs": [],
"source": [
"# Mandatory\n",
Expand All @@ -153,15 +185,21 @@
{
"cell_type": "markdown",
"id": "registered-showcase",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"## Model"
]
},
{
"cell_type": "markdown",
"id": "af18cb32",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"#### Create connection object"
]
Expand All @@ -170,7 +208,10 @@
"cell_type": "code",
"execution_count": null,
"id": "11dc686a",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"outputs": [],
"source": [
"client = ApifyClient(APIFY_API_TOKEN)"
Expand All @@ -179,7 +220,10 @@
{
"cell_type": "markdown",
"id": "tested-astrology",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"### Get data from Apify TikTok Scraper API"
]
Expand Down Expand Up @@ -226,7 +270,10 @@
{
"cell_type": "markdown",
"id": "eb8fe904",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"### Extract data from the response"
]
Expand All @@ -235,7 +282,10 @@
"cell_type": "code",
"execution_count": null,
"id": "31247107",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"outputs": [],
"source": [
"# Instantiate the ABI Content Table Data Model as a pandas dataframe\n",
Expand Down Expand Up @@ -352,7 +402,9 @@
"iopub.status.idle": "2021-07-02T23:32:10.796900Z",
"shell.execute_reply": "2021-07-02T23:32:10.796358Z",
"shell.execute_reply.started": "2021-07-02T23:32:10.789033Z"
}
},
"papermill": {},
"tags": []
},
"source": [
"## Output"
Expand All @@ -361,7 +413,10 @@
{
"cell_type": "markdown",
"id": "890f7c86-b7bb-4f5d-9a1b-e492dd9580fd",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"### Call the function"
]
Expand All @@ -370,7 +425,10 @@
"cell_type": "code",
"execution_count": null,
"id": "9c4e3b7b-6440-4844-8054-265f1aec65eb",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"outputs": [],
"source": [
"print(f\"The input is: \\n\", RUN_INPUT)\n",
Expand All @@ -380,7 +438,10 @@
{
"cell_type": "markdown",
"id": "2209a3f2",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"source": [
"### Extract the output from the response"
]
Expand All @@ -389,7 +450,10 @@
"cell_type": "code",
"execution_count": null,
"id": "8479fff7",
"metadata": {},
"metadata": {
"papermill": {},
"tags": []
},
"outputs": [],
"source": [
"content = extract_data(response, content_template)\n",
Expand Down Expand Up @@ -418,6 +482,10 @@
"pygments_lexer": "ipython3",
"version": "3.9.6"
},
"naas": {
"notebook_id": "a9b66b069f78df078e8cf4e6e776da6d17d9782bf955affe6a115c06b1de9d46",
"notebook_path": "TikTok/TikTok_Get_keyword_trending_songs.ipynb"
},
"papermill": {
"default_parameters": {},
"environment_variables": {},
Expand All @@ -434,4 +502,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
Loading

0 comments on commit acc867a

Please sign in to comment.