need help regarding deployment of discord bot

yoo guys wassup need some help while deploying discord bot i've a bot i've hosted it on railways it was working fine in local dev but now it's throwing error
File "/opt/venv/lib/python3.8/site-packages/selenium/webdriver/firefox/webdriver.py", line 164, in __init__
self.service.start()
File "/opt/venv/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
File "/opt/venv/lib/python3.8/site-packages/selenium/webdriver/firefox/webdriver.py", line 164, in __init__
self.service.start()
File "/opt/venv/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.
i've added the geckodriver but it still throwing this error
7 Replies
Percy
Percy16mo ago
Project ID: b5439648-1430-4647-8ed9-049bc0ee5dc5
Sheikh Satoru
Sheikh Satoru16mo ago
b5439648-1430-4647-8ed9-049bc0ee5dc5
Brody
Brody16mo ago
can I ask what you use selenium for?
Sheikh Satoru
Sheikh Satoru16mo ago
i'm getting latest job from upwork and sending it to my discord server
Brody
Brody16mo ago
I'm sorry but that would count as web scraping, and that would break railways tos. you will want to be using upwork's official api
Sheikh Satoru
Sheikh Satoru16mo ago
that requires a callback url i don't have one it's just a bot
Brody
Brody16mo ago
you can absolutely have a callback url the bot can run a simple web server and you can use the railway generated domain as the callback and for local development you could use a solution like ngrok
Want results from more Discord servers?
Add your server