![]() ![]() ![]() ('Python HTTP trigger function processed a request.') That was the first working one, not judging if f-strings should be used it is a good start for a few minutes of prompt writing exercise: import loggingįrom youtube_transcript_api import YouTubeTranscriptApi as ytaįrom youtube_transcript_api._errors import TranscriptsDisabledĭef main(req: func.HttpRequest) -> func.HttpResponse: It was my first hands on experience with Phyton script in Azure Functions so I asked ChatGPT for help. I wanted to go fast and fail quickly so I followed the steps here: Create a Python function using Visual Studio Code - Azure Functions | Microsoft Learn Learn that Azure Function HTTP trigger returns HTML so I had to ask for a JSON output. I knew that I want to write a simple script that will use this code and return me some values to Power Automate in JSON. ![]() For dev/test purpose it was good enough for me. I also realized that this code uses an undocumented part of the YouTube API, which is called by the YouTube web-client. PyPI that does exactly what I was looking for.YouTube user profile and followed channels.GitHub account (for CI/CD optional) and VS Code to build, test and deploy.Google API key (call YouTube Data API v3).Power Apps Developer Plan (or per-user/per-flow plan).Azure Subscription (to deploy your Azure Functions).Send a notification to Microsoft Teams chat only if a followed YT channel uploads a new video which contains a specific term. I know some basic Power Fx expressions and can write simple prompts to OpenAI and copy and paste. This is a simple use case created when was learning about Azure Functions ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |