https://github.com/aveek-saha/actornet
🎥 Generate an ego network for any actor
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
â—‹CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
â—‹.zenodo.json file
-
â—‹DOI references
-
â—‹Academic publication links
-
â—‹Academic email domains
-
â—‹Institutional organization owner
-
â—‹JOSS paper metadata
-
â—‹Scientific vocabulary similarity
Low similarity (9.1%) to scientific vocabulary
Keywords
Repository
🎥 Generate an ego network for any actor
Basic Info
Statistics
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Actor Net
Generate an ego network for any actor. Uses TMDb to collect information about actors, an edge is formed if an actor has worked with another in a movie or TV show. Edge weights represent how many times an actor has worked with another.
How to use
Clone this repo
Clone this repository and make it your current working directory
git clone https://github.com/Aveek-Saha/ActorNet.git
cd ActorNet
Install prerequisites
The required libraries for this script are: 1. networkx 1. tqdm 1. urllib
Create a config file
Create a file named config.py and add the following to it:
python
tmdb_api_key = "<<Your tmdb api key>>"
actor_name = "<<Name of the actor>>"
Run script
Run the script and wait for it to complete, this may take a while.
python actor_net.py
Output
The final output is stored in a gml file: data/<<name of actor>>.gml. You can open this in a tool of your choice for analysis. I used Gephi for the image shown in the example.
Example
Here's an example of a graph generated with this tool. This graph is a small subset of the top 25 actors ranked by TMDb's popularity metric that have worked with Tom Holland. Even from a rudimentary analysis of this graph a few things immediately jump out. The community detection algorithm has done an okay job of splitting the nodes into actors that are primarily connected through the MCU and those either outside the MCU or those with a more diverse set of roles.

Owner
- Name: Aveek Saha
- Login: Aveek-Saha
- Kind: user
- Location: Boston, MA
- Company: @akamai
- Website: home.aveek.io
- Repositories: 66
- Profile: https://github.com/Aveek-Saha
Cloud Computing, Machine Learning and Full Stack. SDE co-op @akamai. MSCS student @northeastern. Previously at @HewlettPackard, @altimetrik & @ IIT Kgp.
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0