Skip to main content

luckysocial

This is a small utility that will lookup a name at Google to find its homepage and then look for social media accounts on the page (twitter, facebook, instagram, youtube, and rss). This is rolling the dice a little bit because the top ranked result is assumed to be the homepage for the name. It was really just a proof of concept for looking up organization names, which you can read more about here.

You can run luckysocial on one name, or you can give it CSV file and it will add relevant columns to it. As examples you can look at the included data.csv and data-new.csv to see what the input and output can look like.

Install

First you need to install some things like Python3, and then install luckysocial:

pip install luckysocial

Run

If you want to look up information about a single name you can:

% luckysocial "uc santa barbara"

name: uc santa barbara
homepage: https://www.ucsb.edu/
twitter: https://twitter.com/ucsantabarbara
facebook: https://www.facebook.com/ucsantabarbara
instagram: https://www.instagram.com/ucsantabarbara

Or you can annotate a CSV file by giving it the path to your CSV file (it will look for a name column).

luckysocial data.csv

After it finishes you should see a data-new.csv file with the new columns.

If you have a differently named name column you can use the --name-col option:

luckysocial --name-col "Org Name" data.csv

If you happen to know the homepage for the name already and want to skip the Google lookup you can use the --url-col parameter:

luckysocial --url-col "Web Locationn" data.csv

Develop

I'm sure that the logic for finding the accounts on a page could be improved. If you'd like to test it out you can run the test suite:

python setup.py test

Metadata

Release files for luckysocial 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for luckysocial 0.0.8
File Size Uploaded
luckysocial-0.0.8.tar.gz 4.2 kB Details

Release files / luckysocial-0.0.8.tar.gz

Download URL luckysocial-0.0.8.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b32e9a35316449c8f366abc5bcdc9912de0b84d934a52a6d1298eb270e483cc5
BLAKE2b-256 checksum
How to use checksums
36a0efc743dc2ece9ce70fa0f8473b782561df84ade3d2281732655d6d39a1f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.8 This release

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page