Giter VIP home page Giter VIP logo

mugalyser's Introduction

MUGAlyser

Version "1.0.6a6"

MUGAlyser is a python program that uses the Meetup API to extract longitudinal data from the Meetup website for a collection of meetup groups. It's designed to capture MongoDB meetup information but it could be used to collect data on any group of meetups by changing the list of urlnames in the mugs.py file. You can also get specific mugs using the --mug parameter.

It puts the data in a MongoDB database. There are separate collections for groups, members, past events and upcoming events.

There is also an audit collection which tracks when the data was collected. Each record is associated with a Batch ID which is tracked in the audit collection.

This is beta software and is currently a WIP. It may break at any time.

The bin directory contains the most interesting programs for end users.

bin/mugalyser_main.py

Captures data from meetup via the Meetup API. For this program to work you need to provide a meetup api key . Without this key the program will fail. The key can be passed in via the --apikey argument. Most people find it easier to set an environment variable MEETUP_API_KEY which the program will also use.

The meetup API is rate limited and the program is smart about the rate limit so you shouldn't see issues unless you run more than one copy at a time.

It currently takes about 17 minutes to capture a complete batch of meetup data for the MongoDB user groups (of which there at 116 with over 50k members in total).

The mugalyser can use the Meetup Pro API calls if you have a pro account. You can ask the MUAlyser to use pro or no pro accounts using the --collect argument. The options are pro, nopro and all. The default is all.

The list of MUGs to process is read from a file using the --urlfile parameter. There is a default list of pro accounts in ../etc/mongodb_pro_groups.

By default the data is written to the MUGS database. To change this default specify a different database via the MongoDB URI passed to the --host argument.

bin/makeapikeyfile.py

This creates a file callled apikey.py which contains the API key for the application. The API key can be passed in on the command line or read from MEETUP_API_KEY. apikey.py is not checked into github to prevent they key from being compromised.

mugalyser's People

Contributors

aribl avatar dependabot[bot] avatar jdrumgoole avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

python3pkg judy2k

mugalyser's Issues

Add pageLimit arg to paginator function

In meetup API add pageLimit to paginator function to limit the total number of pages returned. This will reduce the load on the meetup API during testing and make testing faster.

pageLimit limits the number of pages processed by paginator before exiting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.