How do I make an alert system using python - python

Hi I want to make a simple alert system which will send an alert back to the server when a client is noticed by the software when accessing a specific website. For example if a user accesses eBay or yahoo then I should get an alert. is there anyway to do so ? I could really use help please.
thank you

Related

Send message WhatsApp with python and selenium

I sent a WhatsApp message from Python, selenium. It opens WhatsApp Web and sends a message to it, and it appears within a second, but I open the chat, and the message does not reach the number that I entered in the code, and this error appears
It looks like maybe the problem could be a permission with your device (maybe turning it into developer mode could help), but I think that an easier option would be to use the library pywhatkit. It is an easier way to send Whatsapp messages with python and there are many online resources to help you learn how to use it. https://pypi.org/project/pywhatkit/

Sending multiple whatsapp messages using python without reopening browser

I was looking for a way to send WhatsApp messages to more than one user (customer number) without reopening the browser, I came across Pywhatkit of whose internal implementation requires reopening the browser every time you want to send a message or media.
Any advice or recommendation of which python tool or library I can use to accomplish this, I will highly appreciate.
Thank you

Selenium Python get data from HTTP request

I am running automation with Selenium and Python on Opera web driver, when I enter the specific page that I need, a request is sent to the server, it is authenticated with anti-content which blocks me from requesting it, then the only solution is to get the returned JSON after sending the request, I had checked selenium-wire, but I think it doesn't fit my needs, I thought if there is another way to do that, any suggestions?
You can try to use Titanium Web Proxy. It is a proxy server and can be installed via Nuget package and used with Selenium.
string body = await e.GetResponseBodyAsString();
Reference:
https://github.com/justcoding121/Titanium-Web-Proxy/issues/176
https://www.automatetheplanet.com/webdriver-capture-modify-http-traffic/#tab-con-9
Hello there are some pages which is created to be impossible automatize the request.
That rule works in JavaScript and there are companies which makes this detection and close the access for a bot.
So I am sorry to cannot solve your problem, I tried to do the same as You and there are not way.

Suggestion: The best way to send messages on Facebook without getting banned using python

I'm using a python script that monitors a website and sends me messages on Facebook if there is any specific updates.
I have tried a module which called 'fbchat', so simple and so easy, but the problem is that I'm using real Facebook accounts and somehow Facebook detected that it's a bot and banned that profile, even if I have made random pauses in my code.
I know that I can do make those notifications through emails, but for me Facebook messages are better... Any ideas about how can I make it possible (maybe through bots!!)?
Thank you!
First take a look at which parameters(headers and payloads) the POST method takes(using network tools in google chrome for example), and try again with as many parameters as possible, while also using a session so cookies are enabled as well.
Different websites use different methods of detecting bots, and you'll just have to test and see what works.
P.S: take a look at this answer for more info.
Multiple Accounts are not allowed on Facebook, and there is no (allowed) way to send messages between users. You can only send messages from Pages to Users, and only if the User started the conversation. You can find more information about that in the docs: https://developers.facebook.com/docs/messenger-platform/

Python to Facebook message, no xmpp authorisation

I am trying to develop a python script that will automatically send a private facebook message to one user.
I have followed the procedure here but this uses the xmpp access tokens.
From what I have read, this is no longer supported.
Does anyone know of a suitable work around?
Thanks for any help
You can only send messages with the official ways (Send Dialog, Facebook Messenger, ...).
Take a look at the Send Dialog: https://developers.facebook.com/docs/sharing/reference/send-dialog
Most likely it´s what you need.

Categories