-- Leo's gemini proxy

-- Connecting to bbs.geminispace.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; charset=utf-8

Comment by ๐Ÿ‘ค nikhotmsk


Re: "Can any suggest a python library to fetch gemini pages for..."

In: u/gritty


You have yo write your own, this is the only reliable way. You can use my command line tool to get the response itself. Here, take my article: https://habr.com/ru/companies/diy_fest/articles/782844/


๐Ÿ‘ค nikhotmsk

Jan 15 ยท 5 months ago


3 Later Comments โ†“


๐Ÿ€ gritty [OP] ยท Jan 15 at 01:59:

@nikhotmsk fair point. I was trying not to deal with rolling my own and reinventing the wheel, but I understand what you're saying.


I ended up getting ignition to work and included it into my little project. I might look at the Python libraries for SSL one of these days.


๐Ÿ˜บ gemalaya ยท Jan 15 at 19:00:

@gritty I think you're using the wrong python package for ignition, it's not called "ignition" (which is an old unmaintained package unrelated to gemini, and breaks on import due to an invalid chmod call), but "ignition-gemini". So if that's the case you can install ignition by doing:


pip uninstall ignition
pip install ignition-gemini

ignition is a pretty good library, and you can combine it with trimgmi, which can do some gemtext parsing for you.


๐Ÿ€ gritty [OP] ยท Jan 15 at 19:28:

@gemalaya thanks! I think that's exactly what was happening. I'll check out that other library as well.


Original Post


๐Ÿ€ gritty

Can any suggest a python library to fetch gemini pages for parsing? There's a couple on awesomegemini but wasn't sure if there were recommendations. I tried ignition but the recent commit fails in init with a permission issue (chmod).

๐Ÿ’ฌ 4 comments ยท Jan 14 ยท 5 months ago

-- Response ended

-- Page fetched on Sun Jun 2 12:37:14 2024