Sindbad~EG File Manager
�
(ٜg6P � �D � d dl mZ d dlZd dlZd dlmZ d dlmZmZ d dlm Z ddl
mZmZm
Z
mZmZmZ ddlmZmZmZ d dlZd ad
adadadad� Zd
� Z ed�� fd�Zedd�� Zedd�� Zed� � Z dd�Z!edd�� Z"d d�Z# G d� de$� Z%ed� � Z&d� Z'd� Z(y)!� )�unicode_literalsN)�
BeautifulSoup)�datetime� timedelta)�Decimal� )� PageError�DisambiguationError�
RedirectError�HTTPTimeoutError�WikipediaException�ODD_ERROR_MESSAGE)�cache�
stdout_encode�debugz!http://en.wikipedia.org/w/api.phpFz3wikipedia (https://github.com/goldsmith/Wikipedia/)c �| � d| j � z dz at t t fD ] }|j � � y)a~
Change the language of the API being requested.
Set `prefix` to one of the two letter prefixes found on the `list of all Wikipedias <http://meta.wikimedia.org/wiki/List_of_Wikipedias>`_.
After setting the language, the cache for ``search``, ``suggest``, and ``summary`` will be cleared.
.. note:: Make sure you search for page titles in the language that you have set.
zhttp://z.wikipedia.org/w/api.phpN)�lower�API_URL�search�suggest�summary�clear_cache)�prefix�cached_funcs �>/usr/local/lib/python3.12/site-packages/wikipedia/wikipedia.py�set_langr s7 � �
�����&�)C�C�'��g�w�/�k����� 0� c � � | a y)z�
Set the User-Agent string to be used for all requests.
Arguments:
* user_agent_string - (string) a string specifying the User-Agent header
N)�
USER_AGENT)�user_agent_strings r �set_user_agentr! &