anyBoNett


NameanyBoNett JSON
Version 0.0.8 PyPI version JSON
download
home_page
Summaryuma biblioteca pra facilitar pesquisas
upload_time2023-07-20 22:17:09
maintainer
docs_urlNone
authorAnyBoLIB
requires_python
licenseMIT License
keywords ytl anybonett net anybonet
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            **Library Description: Internet Searches and Text Translation**

The library offers several functionalities to facilitate internet searches and text translations. With these tools, users can perform searches on various search engines, access information from Wikipedia, search for news, check website availability, perform currency conversions, and translate texts.

**Key Features:**

1. YouTube Search (`search_youtube`): Performs a direct search on YouTube based on a provided keyword and opens the default browser to display the search results.

2. Google Search (`search_google`), Bing Search (`search_bing`), and DuckDuckGo Search (`search_duckgo`): Performs direct searches on Google, Bing, and DuckDuckGo search engines, respectively, and opens the default browser to display the search results.

3. Wikipedia Search (`search_wikipedia`): Retrieves summarized information from Wikipedia in a specified language based on a provided keyword. Users can set the language of the search to obtain information in different languages.

4. Google Books Search (`search_google_books`): Performs a search on Google Books based on a provided keyword and returns a list of relevant book titles.

5. Paginated Wikipedia Search (`search_wikipedia_paginated`): Performs a search on Wikipedia and returns the results in pages, allowing users to access information in parts, with a specific number of results per page.

6. Website Availability Check (`check_website_availability`): Verifies if a specific website is available and returns a boolean value indicating its accessibility.

7. News Search (`search_news`): Performs a news search based on a provided keyword and returns a list of URLs with the news results.

8. Currency Conversion (`convert_currency`): Converts a value from one currency to another based on exchange rates obtained from an external API.

9. Text Translation (`translate_text`): Translates a text from a source language to a target language using the Yandex Translate API.

These functionalities provide a convenient and easy way for users to access internet information and perform translation tasks, making the library a useful tool for internet searches and text translations in various contexts and scenarios.

**Example:**

```python
import anybonett.NET as ab

# Perform a YouTube search
ab.search_youtube("funny cats videos")

# Perform a Google search
ab.search_google("Python programming")

# Search Wikipedia for information in French
result = ab.search_wikipedia("Artificial Intelligence", "fr", 2)
print(result)

# Check website availability
url = "https://www.example.com"
availability = ab.check_website_availability(url)
print(f"Website {url} is available: {availability}")

# Perform a news search
news_list = ab.search_news("Technology trends")
print(news_list)

# Convert currency from USD to EUR
amount = 100
from_currency = "USD"
to_currency = "EUR"
api_key = "your_api_key"
result = ab.convert_currency(amount, from_currency, to_currency, api_key)
print(result)

# Translate a text from English to Spanish
text = "Hello, how are you?"
source_language = "en"
target_language = "es"
translation = ab.translate_text(text, source_language, target_language)
print(translation)
```

Please note that some functionalities may require API keys, as indicated in the documentation for each function. Also, ensure that you have installed the necessary dependencies, such as `wikipedia`, `googlesearch-python`, `requests`, and `translate`.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "anyBoNett",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "ytl,anybonett,net,anybonet,",
    "author": "AnyBoLIB",
    "author_email": "bidjorys@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/62/22/24f914e2c7678b23da5b71345af0ea143ba0e5bde053d69b823c8cac7a85/anyBoNett-0.0.8.tar.gz",
    "platform": null,
    "description": "**Library Description: Internet Searches and Text Translation**\r\n\r\nThe library offers several functionalities to facilitate internet searches and text translations. With these tools, users can perform searches on various search engines, access information from Wikipedia, search for news, check website availability, perform currency conversions, and translate texts.\r\n\r\n**Key Features:**\r\n\r\n1. YouTube Search (`search_youtube`): Performs a direct search on YouTube based on a provided keyword and opens the default browser to display the search results.\r\n\r\n2. Google Search (`search_google`), Bing Search (`search_bing`), and DuckDuckGo Search (`search_duckgo`): Performs direct searches on Google, Bing, and DuckDuckGo search engines, respectively, and opens the default browser to display the search results.\r\n\r\n3. Wikipedia Search (`search_wikipedia`): Retrieves summarized information from Wikipedia in a specified language based on a provided keyword. Users can set the language of the search to obtain information in different languages.\r\n\r\n4. Google Books Search (`search_google_books`): Performs a search on Google Books based on a provided keyword and returns a list of relevant book titles.\r\n\r\n5. Paginated Wikipedia Search (`search_wikipedia_paginated`): Performs a search on Wikipedia and returns the results in pages, allowing users to access information in parts, with a specific number of results per page.\r\n\r\n6. Website Availability Check (`check_website_availability`): Verifies if a specific website is available and returns a boolean value indicating its accessibility.\r\n\r\n7. News Search (`search_news`): Performs a news search based on a provided keyword and returns a list of URLs with the news results.\r\n\r\n8. Currency Conversion (`convert_currency`): Converts a value from one currency to another based on exchange rates obtained from an external API.\r\n\r\n9. Text Translation (`translate_text`): Translates a text from a source language to a target language using the Yandex Translate API.\r\n\r\nThese functionalities provide a convenient and easy way for users to access internet information and perform translation tasks, making the library a useful tool for internet searches and text translations in various contexts and scenarios.\r\n\r\n**Example:**\r\n\r\n```python\r\nimport anybonett.NET as ab\r\n\r\n# Perform a YouTube search\r\nab.search_youtube(\"funny cats videos\")\r\n\r\n# Perform a Google search\r\nab.search_google(\"Python programming\")\r\n\r\n# Search Wikipedia for information in French\r\nresult = ab.search_wikipedia(\"Artificial Intelligence\", \"fr\", 2)\r\nprint(result)\r\n\r\n# Check website availability\r\nurl = \"https://www.example.com\"\r\navailability = ab.check_website_availability(url)\r\nprint(f\"Website {url} is available: {availability}\")\r\n\r\n# Perform a news search\r\nnews_list = ab.search_news(\"Technology trends\")\r\nprint(news_list)\r\n\r\n# Convert currency from USD to EUR\r\namount = 100\r\nfrom_currency = \"USD\"\r\nto_currency = \"EUR\"\r\napi_key = \"your_api_key\"\r\nresult = ab.convert_currency(amount, from_currency, to_currency, api_key)\r\nprint(result)\r\n\r\n# Translate a text from English to Spanish\r\ntext = \"Hello, how are you?\"\r\nsource_language = \"en\"\r\ntarget_language = \"es\"\r\ntranslation = ab.translate_text(text, source_language, target_language)\r\nprint(translation)\r\n```\r\n\r\nPlease note that some functionalities may require API keys, as indicated in the documentation for each function. Also, ensure that you have installed the necessary dependencies, such as `wikipedia`, `googlesearch-python`, `requests`, and `translate`.\r\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "uma biblioteca pra facilitar pesquisas",
    "version": "0.0.8",
    "project_urls": null,
    "split_keywords": [
        "ytl",
        "anybonett",
        "net",
        "anybonet",
        ""
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1d61d560dd7b46dada0f3a391801a926785f5b803c2dfd64986af80b1ce3dadb",
                "md5": "932055949f3974de43e352abb794b3f6",
                "sha256": "aa50992c9de38746af07ba06fd6218e133ac3748f47d37165d86f33ef16d69a2"
            },
            "downloads": -1,
            "filename": "anyBoNett-0.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "932055949f3974de43e352abb794b3f6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4468,
            "upload_time": "2023-07-20T22:17:06",
            "upload_time_iso_8601": "2023-07-20T22:17:06.913502Z",
            "url": "https://files.pythonhosted.org/packages/1d/61/d560dd7b46dada0f3a391801a926785f5b803c2dfd64986af80b1ce3dadb/anyBoNett-0.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "622224f914e2c7678b23da5b71345af0ea143ba0e5bde053d69b823c8cac7a85",
                "md5": "e270db4f8bf88cd3424fd1567e33817c",
                "sha256": "cff8734c606ac456cf9165dca92b4a4c7f595302b8cda6f1606ebd02d2c35084"
            },
            "downloads": -1,
            "filename": "anyBoNett-0.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "e270db4f8bf88cd3424fd1567e33817c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4240,
            "upload_time": "2023-07-20T22:17:09",
            "upload_time_iso_8601": "2023-07-20T22:17:09.112523Z",
            "url": "https://files.pythonhosted.org/packages/62/22/24f914e2c7678b23da5b71345af0ea143ba0e5bde053d69b823c8cac7a85/anyBoNett-0.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-20 22:17:09",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "anybonett"
}
        
Elapsed time: 0.09696s