问题
I am working on a web app project in Django with selenium where per one user there is one chrome browser open also chrome profile directory per user and chrome stay alive 24/7. Where the user can send msg or schedule msg. My problem is how can I send a schedule msg ?
The following problem I am facing while working on my project:
- How to open a browser that already associated with my user because I already have user chrome profile directory per user and chrome is always open. I want that user webdriver id.
My doubt:
- can I need to make different python project for scheduling task or I can make script inside Django project that work 24/7 checking for scheduling msg for all user?
What I want:
I want to make a script that runs every 5 min check for scheduling msg if there are any scheduling msg then open user chrome that already open (maybe u think how I know which chrome? ans: because I save chrome profile folder with my user id and u can access same chrome with user profile so I don't need to log in again for that user).In the end all I want that user webdriver id so I can send my scheduling msg.
Any type of help appreciated and also if you have any type of doubts ask me.
来源:https://stackoverflow.com/questions/63936575/how-to-do-scheduling-task-in-django-and-selenium-combine-project