Skip to main content

If Meetup didn't become a walled garden, the world wouldn't need Teemup

Project description

teemup

If Meetup didn't become a walled garden, the world wouldn't need Teemup

Purpose and scope

This library takes HTML source of a meetup group page on Meetup and returns a list of their upcoming events.

Usage

>>> import urllib.request
>>> from teemup import parse
>>> with urllib.request.urlopen('https://www.meetup.com/dresdenjs-io-javascript-user-group/') as f:
...     html = f.read()
...
>>> events = parse(html)
>>> event = next(event for event in events if event['venue'] is not None)
>>> sorted(event.keys())
['description', 'ends_at', 'group_name', 'starts_at', 'title', 'url', 'venue']
>>> sorted(event['venue'])
['address', 'city', 'country', 'name', 'state']

The example above is tested and thus doesn't contain any variable data, but should be enough to give you an idea.

If something breaks

If the website changes, update the fixture:

curl https://www.meetup.com/reactgirls/ > test_fixtures/response_content.html

Then run poetry run pytest. Change teemup.py and add unit tests to test_teemup.py as needed. Then cut a new release:

  • Make sure the tests really pass: poetry run pytest
  • Format the code: poetry run black .
  • Raise the version number in pyproject.toml
  • Commit the changes: git commit -am "release vX.Y.Z"
  • Create a version tag: git tag vX.Y.Z
  • Push the tag: git push --follow-tags

Note: If there are no upcoming events, choose a different group page for testing. Do not remove live testing from the repository! The whole purpose of the library is to be up-to-date with the current website. It must be monitored every day and fixed as soon as it breaks.

Why

Meetup used to be a nice and friendly platform where to host your events. It used to have an iCalendar export, RSS export, Atom export.

Such exports are useful if one wants to follow certain meetup in their own calendar software, or if one wants to read the event feed by a program and automatically link to upcoming events from a website – effectively sending more people to the events and more potential users to Meetup.

In March 2023 they've put these exports behind login, basically rendering them useless. You can download the files manually, but automatic fetching for future events is impossible. They do have an API (with horrendous auth flow), but that API is reserved to paying users only.

After a long conversation with their support (June 2023), they confirmed the login is intentional, but they couldn't explain why they did such product decision and how it benefits their users. From that point on, I consider Meetup to be a hostile walled garden, which contributes to harming the free and open internet.

All my integrations broke down, and not only mine.

I figured out they left JSON-DL meta data on the page. Such meta data is good for search engines and other tooling and can be read by extruct. This allowed me to fix everything for a while, but in August 2023, the JSON-DL has also disappeared from the website.

All out war then! I moved the code to this separate library so it's easier to develop, re-use, contribute to, and monitor.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teemup-1.2.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

teemup-1.2.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file teemup-1.2.2.tar.gz.

File metadata

  • Download URL: teemup-1.2.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for teemup-1.2.2.tar.gz
Algorithm Hash digest
SHA256 c850e77c18bac840104af6f78077d8f4cb00c387a83e7460328468a791e9cad3
MD5 ddb9e3c979c010a10a0060b8e006bd05
BLAKE2b-256 7f483e7cb942a6fddae6b14b3d97b0711bcd4669eca568805474ac651e9a3c81

See more details on using hashes here.

Provenance

The following attestation bundles were made for teemup-1.2.2.tar.gz:

Publisher: release.yml on juniorguru/teemup

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file teemup-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: teemup-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for teemup-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 66fb85b83c75bf092a6fe12f78d89b86bb81aa0f8d22a076a7c932ae1f664170
MD5 e24147675606947a3481e25cc4fe7fda
BLAKE2b-256 5b3b086f2bfbe5edf509b436807680224808ab989f14da27a14c12932ee9a1a8

See more details on using hashes here.

Provenance

The following attestation bundles were made for teemup-1.2.2-py3-none-any.whl:

Publisher: release.yml on juniorguru/teemup

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page