Skip to main content

Scrape/search for AI events in NYC (Eventbrite API first, HTML fallback).

Project description

nyc_ai_events

Python package that returns a structured list of NYC-based AI events.

Planned data sources

  1. Eventbrite API (requires EVENTBRITE_TOKEN)
  2. HTML scraping fallback (BeautifulSoup4)
  3. AI-driven extraction placeholder (disabled by default)

Dev quickstart (once Poetry is installed)

  • Initialize (src layout): poetry new nyc_ai_events --src
  • Or initialize in an existing folder: poetry init

Point Poetry to PyPy 3

  • poetry env use pypy3
  • Or: poetry env use $(command -v pypy3)

Install dependencies

  • poetry add requests beautifulsoup4 lxml
  • Dev/test deps: poetry add --group dev pytest pytest-mock responses

Run tests

  • poetry run pytest

Build for distribution

  • poetry build

CLI

  • Poetry: poetry run nyc-ai-events --limit 10 --source auto
  • Without Poetry (uses this repo's venv Python):
    • PYTHONPATH=src NYC_AI_EVENTS_ENABLE_SCRAPE=1 ./.venv/bin/python -m nyc_ai_events.cli --source scrape --limit 10
    • PYTHONPATH=src NYC_AI_EVENTS_ENABLE_SCRAPE=1 ./.venv/bin/python -m nyc_ai_events.cli --source auto --limit 10

Note: don’t paste commands where python appears as a clickable markdown link like [python](...) (that text is not a real executable).

Install locally in another project (for testing)

Option A: pip editable

  • From the other project: pip install -e /absolute/path/to/PyPack_EventBrite

Option B: poetry add path

  • From the other project: poetry add --editable /absolute/path/to/PyPack_EventBrite

Install from PyPI (once published)

  • pip install nyc-ai-events
  • Then run: nyc-ai-events --limit 10 --source auto

Release to PyPI (maintainers)

This repo is set up to publish on git tags like v0.1.0 via GitHub Actions.

  • Create a PyPI account and enable 2FA.
  • Create a PyPI API token.
  • Add it to this GitHub repo as an Actions secret named PYPI_API_TOKEN.
  • Push a version tag like v0.1.0 to publish.

Public API

  • nyc_ai_events.get_nyc_ai_events()list[dict] with keys: name, date, location, link

License

MIT (see LICENSE).

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

nyc_ai_events-0.1.0.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

nyc_ai_events-0.1.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file nyc_ai_events-0.1.0.tar.gz.

File metadata

  • Download URL: nyc_ai_events-0.1.0.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nyc_ai_events-0.1.0.tar.gz
Algorithm Hash digest
SHA256 407750d236ee651240a1d7070a2746d643e6e5ae317829575aee009ca660b2fc
MD5 9b5e27fe04a48519c99a650c11141e34
BLAKE2b-256 22e790775ea14cdc56217a51ecc1e7b006db49121f5e64190aa5858d237a3353

See more details on using hashes here.

File details

Details for the file nyc_ai_events-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nyc_ai_events-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for nyc_ai_events-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 deafbe40a3ac9f1dc8ff06cce034b07649fa36a9fa4e5990652f121702c6e867
MD5 f3f197563634aabc4e9745edb5e0bb28
BLAKE2b-256 a112266aa54b064b6f0897be735df09f4a7fe247867121a6e83287603a48d25e

See more details on using hashes here.

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