| Server IP : 35.80.110.71 / Your IP : 216.73.216.221 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/feedparser/__pycache__/ |
Upload File : |
�
��bs, � � � d dl Z d dlZd dlZd dlZddlmZmZ ddl m
Z
ddl� ddlm
Z
ddlmZ ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZ ddl� dd
lmZmZ ddlmZ dgZdZi dd�dd�dd�dd�dd�dd�dd�dd �d!d"�d#d$�d%d&�d'd(�d)d*�d+d,�d-d.�d/d0�Z d1� Z! e"d2eee
e#fi � Z$ e"d3eeejJ jL jN e#fi � Z(d5d4�Z)y)6� N� )�registerDateHandler�_parse_date)�convert_to_utf8)�*)�_BaseHTMLProcessor)�http)�mixin)�_FeedParserMixin)�_LooseFeedParser)�_StrictFeedParser)�replace_doctype)�convert_to_idn�make_safe_absolute_uri)�FeedParserDict�drv_libxml2T� �unknown�rss090zRSS 0.90�rss091nzRSS 0.91 (Netscape)�rss091uzRSS 0.91 (Userland)�rss092zRSS 0.92�rss093zRSS 0.93�rss094zRSS 0.94�rss20zRSS 2.0�rss10zRSS 1.0�rsszRSS (unknown version)�atom01zAtom 0.1�atom02zAtom 0.2�atom03zAtom 0.3�atom10zAtom 1.0�atomzAtom (unknown version)�cdf�CDFc
�� � t | d� r| j � S t | t � r@t j
j
| � d dv rt j | |||||||� S t | d� 5 }|j � } ddd� | S # 1 sw Y S xY w# t t t t f$ r Y nw xY wt | t � s| j d� S | S )aE URL, filename, or string --> stream
This function lets you define parsers that take any input source
(URL, pathname to local or network file, or actual data as a string)
and deal with it in a uniform manner. Returned object is guaranteed
to have all the basic stdio read methods (read, readline, readlines).
Just .close() the object when you're done with it.
If the etag argument is supplied, it will be used as the value of an
If-None-Match request header.
If the modified argument is supplied, it can be a tuple of 9 integers
(as returned by gmtime() in the standard Python time module) or a date
string in any format supported by feedparser. Regardless, it MUST
be in GMT (Greenwich Mean Time). It will be reformatted into an
RFC 1123-compliant date and used as the value of an If-Modified-Since
request header.
If the agent argument is supplied, it will be used as the value of a
User-Agent request header.
If the referrer argument is supplied, it will be used as the value of a
Referer[sic] request header.
If handlers is supplied, it is a list of handlers used to build a
urllib2 opener.
if request_headers is supplied it is a dictionary of HTTP request headers
that will override the values generated by FeedParser.
:return: A bytes object.
�readr )r �https�ftp�file�feed�rbN�utf-8)�hasattrr&