Project Euler Problem Fetcher by Jordan PorterProject Euler Problem Fetcher by Jordan Porter

Project Euler Problem Fetcher

Jordan Porter

Jordan Porter

project-euler-problem-fetcher

Grabs project euler problems and saves them into a file in the current directory. The project text will be found at the top of the file nested amidst a multiline comment block of your specified language.

Usage

usage: fetch_problem.py [-h] [--problem PROBLEM] [--language {python,julia,haskell,cpp,java}]

Download and prepare a specified Project Euler problem.

options:
-h, --help show this help message and exit
--problem PROBLEM Problem number you wish to download.
--language {python,julia,haskell,cpp,java}
Programming language you would like to use

Contributing

Adding support for your own lanugage is easy.
Add the langauge name to ACCEPTED_LANGUAGES.
Add a case in format_comment that formats the multiline comment for the desired language.
Add a case in format_dest that formats the filenam for the desired language.
Like this project

Posted Jul 26, 2025

Extremely simple scraper that fetches Project Euler problem descriptions and saves them as a multi-line comment in a file for the language of your choice.

Likes

0

Views

7