Format: application/x-python-code
⬇ Download File (5.0 KB)
   1  o
   2  
   3  /'h^�@s,ddlmZddlmZGdd�de�ZdS)�)�_parse_date)�FeedParserDictc@s�eZdZddd�Zdd�Zdd�Zdd	�Zd
   4  d�Zdd
   5  �Zdd�Z	dd�Z
   6  dd�Zdd�Zdd�Z
   7  dd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Zd&d'�Zd(d)�Zd*d+�Zd,d-�Zd.d/�Zd0d1�Zd2d3�Zd4d5�Zd6d7�Zd8d9�Zd:d;�Zd<S)=�	NamespaceZdcZdcterms)z http://purl.org/dc/elements/1.1/zhttp://purl.org/dc/terms/cC�|��dS�N�Z_end_author��self�r
   8  �NC:\Users\shubh\Videos\agent\nova\Lib\site-packages\feedparser/namespaces/dc.py�_end_dc_author'�zNamespace._end_dc_authorcCrrrrr
   9  r
  10  r�_end_dc_creator*r
  11  zNamespace._end_dc_creatorcCrr�Z_end_updatedrr
  12  r
  13  r�_end_dc_date-r
  14  zNamespace._end_dc_datecCrr)Z_end_descriptionrr
  15  r
  16  r�_end_dc_description0r
  17  zNamespace._end_dc_descriptioncCrr)Z
  18  _end_languagerr
  19  r
  20  r�_end_dc_language3r
  21  zNamespace._end_dc_languagecCrr)Z_end_webmasterrr
  22  r
  23  r�_end_dc_publisher6r
  24  zNamespace._end_dc_publishercCrr)Z_end_rightsrr
  25  r
  26  r�_end_dc_rights9r
  27  zNamespace._end_dc_rightscCrr)Z
  28  _end_categoryrr
  29  r
  30  r�_end_dc_subject<r
  31  zNamespace._end_dc_subjectcCrr)Z
  32  _end_titlerr
  33  r
  34  r�
  35  _end_dc_title?r
  36  zNamespace._end_dc_titlecCrr)Z_end_createdrr
  37  r
  38  r�_end_dcterms_createdBr
  39  zNamespace._end_dcterms_createdcCrr)Z_end_publishedrr
  40  r
  41  r�_end_dcterms_issuedEr
  42  zNamespace._end_dcterms_issuedcCrrrrr
  43  r
  44  r�_end_dcterms_modifiedHr
  45  zNamespace._end_dcterms_modifiedcC�|�|�dSr�Z
  46  _start_author�r	�attrs_dr
  47  r
  48  r�_start_dc_authorK�zNamespace._start_dc_authorcCrrrrr
  49  r
  50  r�_start_dc_creatorNrzNamespace._start_dc_creatorcCrr�Z_start_updatedrr
  51  r
  52  r�_start_dc_dateQrzNamespace._start_dc_datecCrr)Z_start_descriptionrr
  53  r
  54  r�_start_dc_descriptionTrzNamespace._start_dc_descriptioncCrr)Z_start_languagerr
  55  r
  56  r�_start_dc_languageWrzNamespace._start_dc_languagecCrr)Z_start_webmasterrr
  57  r
  58  r�_start_dc_publisherZrzNamespace._start_dc_publishercCrr)Z
  59  _start_rightsrr
  60  r
  61  r�_start_dc_rights]rzNamespace._start_dc_rightscCrr)Z_start_categoryrr
  62  r
  63  r�_start_dc_subject`rzNamespace._start_dc_subjectcCrr)Z_start_titlerr
  64  r
  65  r�_start_dc_titlecrzNamespace._start_dc_titlecCrr)Z_start_createdrr
  66  r
  67  r�_start_dcterms_createdfrz Namespace._start_dcterms_createdcCrr)Z_start_publishedrr
  68  r
  69  r�_start_dcterms_issuedirzNamespace._start_dcterms_issuedcCrrr!rr
  70  r
  71  r�_start_dcterms_modifiedlrz!Namespace._start_dcterms_modifiedcCs|�dd�dS)N�validity�)�pushrr
  72  r
  73  r�_start_dcterms_validoszNamespace._start_dcterms_validcCs�|�d��d�D];}d|vrC|�dd�\}}|dkr-|jd|dd�|jd	t|�dd�q|d
  74  krC|jd|dd�|jdt|�dd�qdS)
  75  Nr,�;�=r-�startZvalidity_startT)�	overwriteZvalidity_start_parsed�endZvalidity_endZvalidity_end_parsed)�pop�splitZ_saver)r	Zvalidity_detail�key�valuer
  76  r
  77  r�_end_dcterms_validrs��zNamespace._end_dcterms_validcCs:d|_|��}|�dg�|d�t��|�dd�dS)Nr-Zcontributors�name�)�
  78  incontributorZ_get_context�
  79  setdefault�appendrr.)r	r�contextr
  80  r
  81  r�_start_dc_contributor}s
  82  zNamespace._start_dc_contributorcCs|��d|_dS)Nr;)Z	_end_namer<rr
  83  r
  84  r�_end_dc_contributor�s
  85  zNamespace._end_dc_contributorN) �__name__�
  86  __module__�__qualname__Zsupported_namespacesrrrrrrrrrrrrrr r"r#r$r%r&r'r(r)r*r+r/r9r@rAr
  87  r
  88  r
  89  rr!s@�rN)Z	datetimesr�utilr�objectrr
  90  r
  91  r
  92  r�<module>s