Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:AGI Edgerunners LLM Agents Papers Python 3 Requests Environment

From Leeroopedia
Knowledge Sources
Domains Data_Collection, Web_Scraping, File_Download
Last Updated 2026-10-10 14:30 GMT

Overview

Python 3.6+ runtime environment with the requests library and network access to arXiv.org for crawling paper metadata and downloading PDFs.

Description

This environment provides a standard CPU-based Python context for running the LLM-Agents-Papers data collection pipeline. All scripts use only the Python standard library (json, os, re, warnings, hashlib, time) plus the third-party requests library for HTTP access. There is no requirements.txt, setup.py, or pyproject.toml in the repository — dependencies are implicit from import statements.

The scripts use f-strings (script_v5_step1.py:L59, L93-96) and function type hints (script_v5_step1.py:L30, L37, L42), requiring Python 3.6 or higher. The pipeline accesses https://arxiv.org/abs/ URLs for metadata crawling and https://arxiv.org/pdf/ URLs for PDF download. An optional proxy can be configured via the module-level PROXY variable for networks with restricted access.

Usage

Use this environment for running any script in the LLM-Agents-Papers pipeline:

  • script_v5_step1.py — crawls arXiv pages, extracts metadata, interactively labels categories
  • script_v5_step2.py — generates README.md from parsed metadata
  • download_pdf.py — batch-downloads PDF files from parsed metadata

All three scripts require the requests library and network access to arxiv.org.

System Requirements

Category Requirement Notes
OS Linux / macOS / Windows Any OS with Python 3.6+ support
Python Python >= 3.6 F-strings and type hints used throughout
Hardware CPU only No GPU required; standard desktop or server
Disk 100MB+ For parsed JSON metadata files and downloaded PDFs
Network Internet access to arxiv.org Required for crawling and downloading

Dependencies

System Packages

  • Python 3.6+ runtime
  • git (for cloning the repository)

Python Packages

  • requests (third-party; the only non-stdlib dependency)
  • json (stdlib)
  • os (stdlib)
  • re (stdlib)
  • warnings (stdlib)
  • hashlib (stdlib)
  • time (stdlib)

Credentials

No credentials or API keys are required. arXiv pages are accessed without authentication. An optional proxy may be configured via the module-level PROXY variable (e.g., {"https": "127.0.0.1:4780", "http": "127.0.0.1:4780"}).

Quick Install

# Install the only third-party dependency
pip install requests

# Verify Python version (requires 3.6+)
python --version

# Clone the repository
git clone https://github.com/AGI-Edgerunners/LLM-Agents-Papers.git
cd LLM-Agents-Papers

Code Evidence

Import of requests (the sole third-party dependency) in script_v5_step1.py:L14:

import requests

Import of requests in download_pdf.py:L15:

import requests

F-string usage requiring Python 3.6+ in script_v5_step1.py:L59, L93-96:

authors = [f"{author.split(', ')[1]} {author.split(', ')[0]}" if len(author.split(', ')) == 2 else author
           for author in authors]

Type hints requiring Python 3.5+ in script_v5_step1.py:L30, L37, L42:

def read_json(file: str) -> dict:
def write_json(file: str, data: dict) -> None:
def parse_by_crawl(url: str):

Proxy configuration support in script_v5_step1.py:L22-23:

HEADERS = {}
PROXY = None #{"https": "127.0.0.1:4780", "http": "127.0.0.1:4780"}

arXiv URL pattern check in script_v5_step1.py:L140:

if not parsed and url.startswith('https://arxiv.org/abs/'):
    parsed = parse_by_crawl(url)

Common Errors

Error Message Cause Solution
ModuleNotFoundError: No module named 'requests' requests library not installed pip install requests
SyntaxError: invalid syntax on f-strings Python version < 3.6 Upgrade to Python 3.6 or higher
warnings.warn("something wrong when visit the url ...") Network error fetching arXiv page Check internet connection; configure PROXY if behind a firewall
the folder ./parsed_v4/ is not exist download_pdf.py expects parsed_v4/ folder Create parsed_v4/ or update Parsed_Folder constant to parsed_v5
the file ... download failed HTTP error or non-200 status downloading PDF Re-run the script; already-downloaded files are skipped

Compatibility Notes

  • No requirements.txt: Dependencies are implicit from imports. The only third-party package is requests.
  • No GPU required: All scripts are CPU-only; no CUDA, PyTorch, or ML framework dependencies.
  • Cross-platform: Scripts use standard Python I/O and os module; works on Linux, macOS, and Windows. Note: download_pdf.py uses Unicode filename sanitization (: → :, ? → ?) for cross-platform filesystem safety.
  • Version note: download_pdf.py references the older parsed_v4/ folder format (download_pdf.py:L41), while the current pipeline uses parsed_v5/. Update Parsed_Folder to parsed_v5 to use with current data.
  • Proxy support: Set the module-level PROXY variable (e.g., {"https": "127.0.0.1:4780", "http": "127.0.0.1:4780"}) for networks requiring a proxy to reach arXiv.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment