Releases: cooperwalbrun/pychan
Releases · cooperwalbrun/pychan
v0.9.0
Changed
- Updated the version constraint of the
pyrate-limiter
dependency from>=2.8,<3
to>=3,<4
(by @cooperwalbrun)
v0.8.0
Added
- Python 3.12 is now an official build target for
pychan
(by @cooperwalbrun)
v0.7.0
Changed
- All 4chan HTTP operations will now use the
4chan.org
domain (previously, some HTTP operations used the4channel.org
domain) (by @cooperwalbrun)
v0.6.0
Added
- The
Thread
andPost
models each now have aurl
property which contains a complete URL linking directly to that particular thread or post in 4chan (by @cooperwalbrun)
Fixed
- The
search()
method will now raise aParsingError
when the data returned from 4chan is in an unexpected format (by @cooperwalbrun) - The
search()
method will no longer induce HTTP 403 errors (thanks to its new Cloudflare-oriented arguments) (by @cooperwalbrun)
Changed
- Whitespace-only thread titles will now be converted into
None
within theget_threads()
method (by @cooperwalbrun) - The
search()
method now expectsuser_agent
andcloudflare_cookies
arguments containing theUser-Agent
andCookie
header data needed to bypass the Cloudflare firewall in front of 4chan's REST API (by @cooperwalbrun)
v0.5.0
Added
- The
File
model now has anis_spoiler
field indicating whether the image was a "spoiler" image (by @cooperwalbrun)
Changed
- The
get_threads()
method no longer iterates through a board's pages; instead, it directly scrapes threads from the catalog for the given board (by @cooperwalbrun)
Removed
- Support for Python 3.9 has been removed;
pychan
will now only build for Python 3.10 and 3.11 (by @cooperwalbrun)
v0.4.2
Fixed
- The
get_boards()
method will no longer induce HTTP 403 errors (by @cooperwalbrun)
v0.4.1
Changed
- The
FourChan
class will no longer output any warnings when 4chan's pages for a given board have been exhausted by theget_threads()
generator (by @cooperwalbrun)
v0.4.0
Added
- The
FourChan
class now supports the optional exception-oriented argumentsraise_http_exceptions
andraise_parsing_exceptions
(by @cooperwalbrun) - There are now integration tests in the project that will actually connect to 4chan instead of relying on mocks (by @cooperwalbrun)
- Added project configuration for using
mypy
to statically type-check code during development and in the GitHub Actions pipeline (by @cooperwalbrun) - Implemented proper typing throughout the source code and added a
py.typed
file per PEP 561 (by @cooperwalbrun)
Changed
- The
Thread
class'sboard
field will now always feature the "sanitized" version of the board (e.g.a
instead of/a/
,/a
, ora/
) (by @cooperwalbrun) - The
ratelimit
module was replaced by thepyrate-limiter
module within the internal request throttler (by @cooperwalbrun)
v0.3.5
Added
- Added support for Python 3.11 to the pipeline and project configuration (by @cooperwalbrun)
v0.3.4
Changed
- The author email address in the wheel's metadata is now set to a real email address (by @cooperwalbrun)