https://github.com/mortonfox/flickr_friend
Categorizes Flickr contacts into mutual, following only, and follower only
https://github.com/mortonfox/flickr_friend
flickr flickr-api foodspotting selenium-webdriver
Last synced: 6 months ago
JSON representation
Categorizes Flickr contacts into mutual, following only, and follower only
- Host: GitHub
- URL: https://github.com/mortonfox/flickr_friend
- Owner: mortonfox
- License: mit
- Created: 2014-11-11T06:26:33.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2020-10-27T14:45:28.000Z (over 5 years ago)
- Last Synced: 2025-06-01T14:40:43.397Z (9 months ago)
- Topics: flickr, flickr-api, foodspotting, selenium-webdriver
- Language: Ruby
- Size: 18.6 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# flickr\_friend
This script uses [Selenium WebDriver](http://www.seleniumhq.org/) and Firefox
to scrape the [Flickr](https://www.flickr.com) friends and followers lists of
the currently logged-in Flickr user. Then it groups the contacts into 3 sets:
mutual friends, only followers, and only following.
Web scraping is unfortunately necessary because while the Flickr API provides
an endpoint for retrieving the user's following list, it still doesn't have a
way to retrieve the user's followers.
## Installation
First, you need to install GeckoDriver:
* Download [the latest GeckoDriver release](https://github.com/mozilla/geckodriver/releases)
* Move the geckodriver binary to one of the folders in your PATH.
Then install the required Ruby gem:
gem install selenium-webdriver
## Usage
Run the script:
ruby flickr_friend.rb
You can control what this script outputs using the -m, -r, and -o options:
$ ruby flickr_friend.rb -h
This script uses Selenium WebDriver and Firefox to scrape the Flickr friends
and followers lists of a Flickr user.
Then it groups the contacts into 3 sets: mutual friends, only followers, and
only following.
Usage: flickr_friend.rb [options]
-h, -?, --help Option help
-m, --mutual Show mutual friends
-r, --only-friends Show only-friends
-o, --only-followers Show only-followers
If none of -m/-r/-o are specified, display all 3 categories.
$
# foodspot\_friend
This script is similar to flickr\_friend, except that it is for the
[Foodspotting](http://www.foodspotting.com) website instead.
## Installation
Follow the same steps as in flickr\_friend above.
## Usage
Run the script:
ruby foodspot_friend.rb
You can control what this script outputs using the -m, -r, and -o options:
$ ruby foodspot_friend.rb -h
This script uses Selenium WebDriver and Firefox to scrape the friends and
followers lists of a Foodspotting user.
Then it groups the contacts into 3 sets: mutual friends, only followers, and
only following.
Usage: foodspot_friend.rb [options]
-h, -?, --help Option help
-m, --mutual Show mutual friends
-r, --only-friends Show only-friends
-o, --only-followers Show only-followers
If none of -m/-r/-o are specified, display all 3 categories.
$