Browsing posts in: Technology

Setting Up Selenium on RaspberryPi 2/3

Selenium is a great tool for Internet scraping or automated testing for websites. I personally use it for scrapping on dynamic content website in which the content is created by JavaScript routines. Lately, I also tried to run Selenium on Raspberry and found out that it is not easy to install all requirements. Here I like to share my commands to make things easier for you.

Here I like to give a simple run-down to install all requirements to make Selenium available on a Raspi. Basically, we install first Firefox, then Geckodriver and finally Selenium and we are ready to go.

Before start,  better to note that ChromeDriver does not support ARM processors anymore, therefore it is not possible to use Chromium with Selenium on Raspberry.

First, install system requirements. Update the system, install Firefox and xvfb (display server implementing X11);

sudo apt-get update
sudo apt-get install iceweasel
sudo apt-get install xvfb

Then, install python requirements. Selenium, PyVirtualDisplay that you can use for running Selenium with hidden  browser display and xvfbwrapper.

sudo pip install selenium
sudo pip install PyVirtualDisplay
sudo pip install xvfbwrapper

Hope everything run well and now you can test the installation.

from pyvirtualdisplay import Display
from selenium import webdriver

display = Display(visible=0, size=(1024, 768))
display.start()

driver = webdriver.Firefox()
driver.get('https://erogol.com/')
driver.quit()

display.stop()

 

 

Share



Genetic Algorithms and a Great Talk

I just watched the great talk given by Elad Katz. Simply after all my background on machine learning algorithms, that the capacity of evolutionary algorithms is simply stunning, even the basic idea is really simple compared to sophisticated counterparts that are used widely in the learning litreture. I am not glib here. If you not believe me just take a look at the talk, especially some of the demos in the mid-while of the talk.

 

Share


How is big data helpful for people and businesses?

All kind of data is useful for companies since they are able to understand and direct their customers as much as data is acquired. The main purpose of the business is that. Understand  customers so that you can make them happy, keep them alive in the company border. The only communication then is the data provided by all those people. They hire data analysis people and try to uncover some unknowns.
Continue Reading

Share

Best Android ROMs that I experienced

For a long time, I have yet to find best ROM variant to my galaxy s2. I used so many different names with different benefits. Battery life, smoothness, loading performance and such qualifications are general expectations of a user but I know that it is really killing to find all of those constraints in one ROM. One might give good performance whereas it drains your battery in a hour, on the other experience, one might gives best battery juice with varying error messages you see in a day. I also come along that way and here is my list of best ROMs with specific pros and cons.
 

Paranoid ROM

 
     This ROM based on well known CynogenMod with very different and Continue Reading
Share



3 websites you might see and like!

takes your mood status with a click on a good visual and gives you some music you might like. It works pretty well and in easy manner.

is collecting online videos from various social media resources like Twitter, Facebook and others. You can collect videos into personalized video channel. If you want to see some collection of videos according to your interests, Frequency is just for you.

is read later application that comes with all the tools work with your smart phone or web browser and makes your information search life easier. In addition with its tagging function you might reach your pages and sources after you read with the searching feature.

Share

Pages:123