-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running on Server #12
Comments
I haven't run this on a server before, but you will likely have to install something like Xvfb. See the discussion here, and let me know if you get this working! I have a couple of scraping projects that I would love to run on dedicated servers. |
Okay, can confirm this will work on a server. This is what setup looked like for me on Centos7: $ wget https://chromedriver.storage.googleapis.com/2.38/chromedriver_linux64.zip
$ unzip chromedriver_linux64.zip
$ sudo mv ./chromedriver /usr/local/bin
$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
$ sudo yum localinstall ./google-chrome-stable_current_x86_64.rpm
$ sudo yum install Xvfb
$ Xvfb :99 -ac &
$ export DISPLAY=:99 Then I pip installed and ran the scrape_linkedin package as per normal |
Thank you! |
@austinoboyle to clarify, for the list of commands you sent above, these are commands that I would need to ssh into my remote server and run/configure there correct? also, 'DISPLAY' looks like an environment variable correct? |
@dsc03 Yes that's correct. This was for a Centos server, but should work similarly on Ubuntu/etc with the distro's respective package manager to get xvfb |
Hey @austinoboyle , So I've been trying to get this thing setup on my linux server, and when I run
It seems like I can skip around, which I tried and after following the rest of the commands and trying to execute my code, I was running into the following issue when I tried running my function that uses your package:
Any thoughts? I've been at it for a bit now so hoping you have some insight. Thanks again. -Daniel |
You likely need to go through each of those dependencies and install it using yum. You may need to enable certain yum repositories to install them. See this link as an example for libappindicator https://stackoverflow.com/questions/49965949/where-is-libappindicator3-so-1 |
Really appreciate your work. I have a question. This works taking cookies. So how do you run this on Ubuntu server?
The text was updated successfully, but these errors were encountered: