If you are using Mac OS X or Linux system search for Terminal program,once it is open type python (in lower case) and hit RETURN/ENTER key as shown in the image below:.If you are using Mac OS X computers Python 2 is already pre-installed.Also, most Linux/UNIX systems have Python 2 pre-installed.If not installed you can install it from command line by writing brew install python but make sure you have brew installed on your MAC. Type quit(), Enter, and get out of python.You should be back at a prompt similar to what you had before you typed python.::SetEnvironmentVariable(“Path”, “$env:Path C:Python27”, “User”) If it says “Python is not recognised” which will, fortunately, happen if you run Python for the first time on windows.Then in PowerShell copy and paste below values,Close the PowerShell then start it again to make sure Python now runs and repeat Step 3.After hitting return the version of Python which is installed on your system will show.In my case, I have Python 2.7.12 installed on my Windows.In the PowerShell window type python (in lower case) and hit RETURN/ENTER key as shown in the image below:.After Python is installed.Search PowerShell from the Start menu and press Enter to run it.Download Python 2.7.x and install it (Don’t install Python 3 the scripts won’t work).If you don’t have Python 2 on your system follow below steps: Since we will be using Python scripts to extract data from the Facebook page then we need to install Python interpreter to execute them.Installation instructions will vary depending on whether you are using Mac OS X,Linux/UNIX or Windows.I will cover the installation in brief.But it is very easy and there is a lot of detailed instructions online incase you can’t follow my brief explanation.If you have Python already installed on your system you can skip this step. 7.0.1 What if you want to get the names of the people who like that post?.7 Step 7: Scraping single post comments and names of people who like the post: Perfect for running Facebook contests. 6 Step 6:Downloading Facebook Pages and Groups posts comments to Excel.5 Step 5:Scraping Facebook Group posts data such as Post statutes,Reactions count,Likes count,Shares count,comments count.4 Step 4:Scraping Facebook Page posts data such Post statutes,Reactions count,Likes count,Shares count,comments count.3 Step 3:Getting Facebook Page name or Group ID.2.0.1 An access token which never expires.2 Step 2:Get access token from the Facebook Graph API explorer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |