Is it possible to make custom made notifications clickable using python, such that it opens a website? I tried a few packages but didn't seem to have that functionality, Please help.
I have used : plyers, win10toast
Related
I want to make a program that keeps track of open websites on Google Chrome on Windows 11 using python. Are there any libraries that can help with this? Metadata such as Duration and When the tab was opened are things that would be preferred as well.
For example, say Google Chrome has these webpages open: YouTube, Gmail, and GitHub. When the script is run, I want the output to be: youtube.com, mail.google.com, and github.com with the corresponding duration and time tab was opened.
I have tried using libraries such as urllib, pyppeteer, requests and selenium however none of these really helped in what I was trying to achieve. Googling this does not help either. I'm looking for a library and/or any example code that would help me, and so that I can research further! Thank you :)
In the new Microsoft Flight Simulator you can pop different cockpit displays out into their own external windows, like this:
However, none of the buttons needed to interact with the displays get "popped out" as well.
I'd like to build a web app that can embed (the continuously updating image of) one of these windows that I can surround with buttons, etc, for interaction to have, say, running on a tablet next to you.
My question is, is it possible with Node to embed the continuously updating image of a native Windows window within a webpage?
Stumbled upon the Screen Capture API. This is what I was looking for.
https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capture_API
I am new to python and discord bots, So I am sorry if this is a stupid question or my way of handling it is not right. My goal was to make a bot that can open an instant google meet and send me the link on discord. I was able to achieve the first part of the goal, that is, I was able to programme the bot to open chrome and go to the google meet website using os.system
os.system('chrome meet.google.com')
I had to set the path to chrome.exe in Environment Variables. From there I used pyautogui to start a meeting. After that, the bot automatically copies the link to the meeting.
Now, this is the part I am stuck in, I don't know how to send this link through the bot to my discord.
I thought of using a separate python program that runs simultaneously. The first program first adds the link in the second program's code and then executes it in cmd. The second program's job would be to just send a message. But I would like to know if there's any easier way of doing this.
Thank you for anyone replying.
I am using Python 3.9 and discord.py 1.7.2
You can use Selenium a Python package for controlling web browser. Pyautogui is mostly used to control the keyboard and mouse so you cannot use it to send the link to discord. Selenium is used for this purpose.
You can learn more about it using the following links:
https://www.geeksforgeeks.org/selenium-python-introduction-and-installation/
https://www.geeksforgeeks.org/selenium-python-tutorial/
https://pypi.org/project/selenium/
I would like to upload a picture to Instagram using headless selenium, and I am running my app on an Ubuntu 18.04 server.
For the selenium part I have used this solution and it works perfectly, however I cannot use autoit as it is Windows only, and even if it weren't, I'm not so sure I could still use it as I am going headless.
Sending the image path directly through selenium is not an option either, as Instagram doesn't have rendered file input fields. It probably just generates one when the post button is clicked but never adds it to the DOM.
Is there a way to remake what the solution I've linked above does without autoit?
I want to get table data from money control website. http://www.moneycontrol.com/financials/infosys/results/consolidated-quarterly-results/IT. I want to use google chrome to open this link and then click on previous years link and get that table too along with the table on that page. I need to click previous years as the url even after clicking previous years remains the same and I cannot directly navigate to it. It is easy with internet explorer but I cannot use it. If there is any other method other than having to click on the link please tell.
Without using a third party library it is only possible to use the Internet Explorer object.
To automate Google Chrome you can try to use Selenium VBA. It's a COM library which creates a Windows COM wrapper for Selenium.
http://florentbr.github.io/SeleniumBasic/
In Google Chrome you have to install a plugin, which helps executing the VBA commands in Chrome.
Download page: http://www.seleniumhq.org/download/