Skip to main content

pyKC

This Python library provides high-level access to a KC thread and/or post (including all available metadata) by parsing the HTML source, additionally various endpoints of the KC AJAX API can be called.

Minimal Requirements:

Core:

  • Python >= 2.6

Modules:

Features:

  • Check pykc/core.py and pykc.py or the example code below. :-)

from pykc import Krautchan

# Create a Krautchan instance.
#
# If you happen to be a mod/admin try the following:
# kc = Krautchan(username='foo', password='bar')
#
# Congratulations, you now have access to some nifty special features! :3
kc = Krautchan()

# Search for a specific file using the AJAX API.
print(kc.search_file(name='rfk'))

# Parse a complete thread and return a thread object.
thread = kc.get_thread('prog', '1698')
print(thread.__dict__)

# You can even JSONify the object! :)
print(thread.to_json())

Credits:

Main author: buckket

License:

       DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
                   Version 2, December 2004

Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

           DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

 0. You just DO WHAT THE FUCK YOU WANT TO.

Release files for pykc 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pykc 1.0
File Size Uploaded
pykc-1.0.tar.gz 6.7 kB Details

Release files / pykc-1.0.tar.gz

Download URL pykc-1.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
743e4e3dd6fbd40f2be99a45581ff59cbb056514cfb3a752d271a0365318eb13
BLAKE2b-256 checksum
How to use checksums
52e53eb99722f726362003714da59099505312c253a6fa743d3e748ff0b2df09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page