How to do scheduling task in django and selenium combine project?

不羁的心 提交于 2021-02-11 14:34:13

问题


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:

  1. 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:

  1. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!