Files
smartguide/service/scripts/orgminer_pipeline

University Organization Pipeline

This repository crawls university organization websites and extracts structured staff, project, news, and keyword information.

Pipeline stages

For one configured entity, the pipeline executes:

  1. Generate crawl seeds from the ground-truth file.
  2. Crawl all seed URLs and their allowed internal links.
  3. Store responses as WARC files.
  4. Build a redirect lookup.
  5. Upload HTML content to Elasticsearch.
  6. Build the organization hierarchy.
  7. Classify crawled URLs with the configured LLM.
  8. Extract staff, projects, and news.
  9. Extract focused keywords for extracted content.

Requirements

  • Python environment containing Scrapy, scrapy-warcio, warcio, Elasticsearch, OpenAI client, Trafilatura, YAKE, langdetect, tiktoken, and project dependencies.
  • Elasticsearch credentials.
  • LLM endpoint and API key.

Create .env in the repository root:

ES_PASSWORD=...
ES_HOST=https://your-elasticsearch-host:443
ES_USERNAME=elastic

llm_api=https://your-llm-api/v1
llm_key=...