diff --git a/README.md b/README.md index 507f906..983e7d7 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@


- Markdownify + YouDotCom

- YouDotCom for python v1.0.23 + YouDotCom for python v1.0.30

diff --git a/RELEASE.md b/RELEASE.md index 384b41a..f15c89e 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -15,5 +15,5 @@ ## Release notes -changed the way the webdriver works. -Now fully support headless mode and will not open a window anymoreNow fully support headless mode and will not open a window anymore +added full api support for youchat +its now way faster (les that 8 sec) diff --git a/poetry.lock b/poetry.lock index 2476e2f..be3abfe 100644 --- a/poetry.lock +++ b/poetry.lock @@ -61,11 +61,12 @@ files = [ ] [package.extras] -cov = ["attrs[tests]", "coverage-enable-subprocess", "coverage[toml] (>=5.3)"] -dev = ["attrs[docs,tests]"] -docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier", "zope.interface"] -tests = ["attrs[tests-no-zope]", "zope.interface"] -tests-no-zope = ["cloudpickle", "cloudpickle", "hypothesis", "hypothesis", "mypy (>=0.971,<0.990)", "mypy (>=0.971,<0.990)", "pympler", "pympler", "pytest (>=4.3.0)", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-mypy-plugins", "pytest-xdist[psutil]", "pytest-xdist[psutil]"] +cov = ["attrs", "coverage-enable-subprocess", "coverage[toml] (>=5.3)"] +dev = ["attrs"] +docs = ["furo", "sphinx", "myst-parser", "zope.interface", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier"] +tests = ["attrs", "zope.interface"] +tests-no-zope = ["hypothesis", "pympler", "pytest (>=4.3.0)", "pytest-xdist", "cloudpickle", "mypy (>=0.971,<0.990)", "pytest-mypy-plugins"] +tests_no_zope = ["hypothesis", "pympler", "pytest (>=4.3.0)", "pytest-xdist", "cloudpickle", "mypy (>=0.971,<0.990)", "pytest-mypy-plugins"] [[package]] name = "bandit" @@ -86,9 +87,9 @@ PyYAML = ">=5.3.1" stevedore = ">=1.20.0" [package.extras] -test = ["beautifulsoup4 (>=4.8.0)", "coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "pylint (==1.9.4)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "toml"] +test = ["coverage (>=4.5.4)", "fixtures (>=3.0.0)", "flake8 (>=4.0.0)", "stestr (>=2.5.0)", "testscenarios (>=0.5.0)", "testtools (>=2.3.0)", "toml", "beautifulsoup4 (>=4.8.0)", "pylint (==1.9.4)"] toml = ["toml"] -yaml = ["PyYAML"] +yaml = ["pyyaml"] [[package]] name = "beautifulsoup4" @@ -164,6 +165,7 @@ description = "Foreign Function Interface for Python calling C code." category = "main" optional = false python-versions = "*" +<<<<<<< HEAD files = [ {file = "cffi-1.15.1-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2"}, {file = "cffi-1.15.1-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2"}, @@ -230,6 +232,8 @@ files = [ {file = "cffi-1.15.1-cp39-cp39-win_amd64.whl", hash = "sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c"}, {file = "cffi-1.15.1.tar.gz", hash = "sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] pycparser = "*" @@ -241,10 +245,21 @@ description = "Validate configuration and produce human readable error messages. category = "dev" optional = false python-versions = ">=3.6.1" +<<<<<<< HEAD files = [ {file = "cfgv-3.3.1-py2.py3-none-any.whl", hash = "sha256:c6a0883f3917a037485059700b9e75da2464e6c27051014ad85ba6aaa5884426"}, {file = "cfgv-3.3.1.tar.gz", hash = "sha256:f5a830efb9ce7a445376bb66ec94c638a9787422f96264c98edc6bdeed8ab736"}, ] +======= + +[[package]] +name = "charset-normalizer" +version = "3.0.1" +description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." +category = "main" +optional = false +python-versions = "*" +>>>>>>> 7d23328 (YouChat update) [[package]] name = "chromedriver-autoinstaller" @@ -253,10 +268,13 @@ description = "Automatically install chromedriver that supports the currently in category = "main" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "chromedriver-autoinstaller-0.4.0.tar.gz", hash = "sha256:57f15f40d2e356c4cb84870cb7f882283a8280118bedacbf19301dd692f672b5"}, {file = "chromedriver_autoinstaller-0.4.0-py3-none-any.whl", hash = "sha256:1534d39903d22379ff13435d695703ae9b14ddb336d43556fd7735854ada6d2b"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "click" @@ -265,10 +283,13 @@ description = "Composable command line interface toolkit" category = "main" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "click-8.0.4-py3-none-any.whl", hash = "sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1"}, {file = "click-8.0.4.tar.gz", hash = "sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] colorama = {version = "*", markers = "platform_system == \"Windows\""} @@ -280,10 +301,13 @@ description = "An extension to click that easily turns your click app into a she category = "main" optional = false python-versions = "*" +<<<<<<< HEAD files = [ {file = "click-shell-2.1.tar.gz", hash = "sha256:ce0c91faae284c41a39bec966f928791ad4a45763755445f1fe2041fd091aa37"}, {file = "click_shell-2.1-py2.py3-none-any.whl", hash = "sha256:2d971a2e50eb7ad387cf0ce79ba4b844e66e0580784e2efe2df58b50a2f047f0"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] click = ">=6.0" @@ -294,15 +318,22 @@ windows = ["pyreadline"] [[package]] name = "cloudscraper" +<<<<<<< HEAD version = "1.2.67" +======= +version = "1.2.68" +>>>>>>> 7d23328 (YouChat update) description = "A Python module to bypass Cloudflare's anti-bot page." category = "main" optional = false python-versions = "*" +<<<<<<< HEAD files = [ {file = "cloudscraper-1.2.67-py2.py3-none-any.whl", hash = "sha256:3b9753724616ac4d811e7922ddc9dba9b4419749ebaa35b0ba503d442522df2e"}, {file = "cloudscraper-1.2.67.tar.gz", hash = "sha256:2776c70f3661c028e59fd306ac2b104882c9b3cb3f798086251e00fc2d72c3a2"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] pyparsing = ">=2.4.7" @@ -316,10 +347,13 @@ description = "Cross-platform colored terminal text." category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" +<<<<<<< HEAD files = [ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "commonmark" @@ -328,21 +362,29 @@ description = "Python parser for the CommonMark Markdown spec" category = "main" optional = false python-versions = "*" +<<<<<<< HEAD files = [ {file = "commonmark-0.9.1-py2.py3-none-any.whl", hash = "sha256:da2f38c92590f83de410ba1a3cbceafbc74fee9def35f9251ba9a971d6d66fd9"}, {file = "commonmark-0.9.1.tar.gz", hash = "sha256:452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.extras] test = ["flake8 (==3.7.8)", "hypothesis (==3.55.3)"] [[package]] name = "coverage" +<<<<<<< HEAD version = "7.0.4" +======= +version = "7.0.5" +>>>>>>> 7d23328 (YouChat update) description = "Code coverage measurement for Python" category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "coverage-7.0.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:daf91db39324e9939a9db919ee4fb42a1a23634a056616dae891a030e89f87ba"}, {file = "coverage-7.0.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:55121fe140d7e42cb970999b93cf1c2b24484ce028b32bbd00238bb25c13e34a"}, @@ -396,6 +438,8 @@ files = [ {file = "coverage-7.0.4-pp37.pp38.pp39-none-any.whl", hash = "sha256:cb8cfa3bf3a9f18211279458917fef5edeb5e1fdebe2ea8b11969ec2ebe48884"}, {file = "coverage-7.0.4.tar.gz", hash = "sha256:f6c4ad409a0caf7e2e12e203348b1a9b19c514e7d078520973147bf2d3dcbc6f"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] tomli = {version = "*", optional = true, markers = "python_full_version <= \"3.11.0a6\" and extra == \"toml\""} @@ -410,10 +454,13 @@ description = "Generate coverage badges for Coverage.py." category = "dev" optional = false python-versions = "*" +<<<<<<< HEAD files = [ {file = "coverage-badge-1.1.0.tar.gz", hash = "sha256:c824a106503e981c02821e7d32f008fb3984b2338aa8c3800ec9357e33345b78"}, {file = "coverage_badge-1.1.0-py2.py3-none-any.whl", hash = "sha256:e365d56e5202e923d1b237f82defd628a02d1d645a147f867ac85c58c81d7997"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] coverage = "*" @@ -425,10 +472,13 @@ description = "A utility for ensuring Google-style docstrings stay up to date wi category = "dev" optional = false python-versions = ">=3.6,<4.0" +<<<<<<< HEAD files = [ {file = "darglint-1.8.1-py3-none-any.whl", hash = "sha256:5ae11c259c17b0701618a20c3da343a3eb98b3bc4b5a83d31cdd94f5ebdced8d"}, {file = "darglint-1.8.1.tar.gz", hash = "sha256:080d5106df149b199822e7ee7deb9c012b49891538f14a11be681044f0bb20da"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "dill" @@ -437,10 +487,13 @@ description = "serialize all of python" category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "dill-0.3.6-py3-none-any.whl", hash = "sha256:a07ffd2351b8c678dfc4a856a3005f8067aea51d6ba6c700796a4d9e280f39f0"}, {file = "dill-0.3.6.tar.gz", hash = "sha256:e5db55f3687856d8fbdab002ed78544e1c4559a130302693d839dfe8f93f2373"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.extras] graph = ["objgraph (>=1.7.2)"] @@ -452,10 +505,13 @@ description = "Distribution utilities" category = "dev" optional = false python-versions = "*" +<<<<<<< HEAD files = [ {file = "distlib-0.3.6-py2.py3-none-any.whl", hash = "sha256:f35c4b692542ca110de7ef0bea44d73981caeb34ca0b9b6b2e6d7790dda8f80e"}, {file = "distlib-0.3.6.tar.gz", hash = "sha256:14bad2d9b04d3a36127ac97f30b12a19268f211063d8f8ee4f47108896e11b46"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "dparse" @@ -464,10 +520,13 @@ description = "A parser for Python dependency files" category = "dev" optional = false python-versions = ">=3.5" +<<<<<<< HEAD files = [ {file = "dparse-0.6.2-py3-none-any.whl", hash = "sha256:8097076f1dd26c377f30d4745e6ec18fef42f3bf493933b842ac5bafad8c345f"}, {file = "dparse-0.6.2.tar.gz", hash = "sha256:d45255bda21f998bc7ddf2afd5e62505ba6134756ba2d42a84c56b0826614dfe"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] packaging = "*" @@ -484,10 +543,13 @@ description = "Backport of PEP 654 (exception groups)" category = "main" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "exceptiongroup-1.1.0-py3-none-any.whl", hash = "sha256:327cbda3da756e2de031a3107b81ab7b3770a602c4d16ca618298c526f4bec1e"}, {file = "exceptiongroup-1.1.0.tar.gz", hash = "sha256:bcb67d800a4497e1b404c2dd44fca47d3b7a5e5433dbab67f96c1a685cdfdf23"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.extras] test = ["pytest (>=6)"] @@ -499,6 +561,7 @@ description = "A platform independent file lock." category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "filelock-3.9.0-py3-none-any.whl", hash = "sha256:f58d535af89bb9ad5cd4df046f741f8553a418c01a7856bf0d173bbc9f6bd16d"}, {file = "filelock-3.9.0.tar.gz", hash = "sha256:7b319f24340b51f55a2bf7a12ac0755a9b03e718311dac567a0f4f7fabd2f5de"}, @@ -507,6 +570,12 @@ files = [ [package.extras] docs = ["furo (>=2022.12.7)", "sphinx (>=5.3)", "sphinx-autodoc-typehints (>=1.19.5)"] testing = ["covdefaults (>=2.2.2)", "coverage (>=7.0.1)", "pytest (>=7.2)", "pytest-cov (>=4)", "pytest-timeout (>=2.1)"] +======= + +[package.extras] +docs = ["furo (>=2022.12.7)", "sphinx-autodoc-typehints (>=1.19.5)", "sphinx (>=5.3)"] +testing = ["covdefaults (>=2.2.2)", "coverage (>=7.0.1)", "pytest-cov (>=4)", "pytest-timeout (>=2.1)", "pytest (>=7.2)"] +>>>>>>> 7d23328 (YouChat update) [[package]] name = "gitdb" @@ -515,10 +584,13 @@ description = "Git Object Database" category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "gitdb-4.0.10-py3-none-any.whl", hash = "sha256:c286cf298426064079ed96a9e4a9d39e7f3e9bf15ba60701e95f5492f28415c7"}, {file = "gitdb-4.0.10.tar.gz", hash = "sha256:6eb990b69df4e15bad899ea868dc46572c3f75339735663b81de79b06f17eb9a"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] smmap = ">=3.0.1,<6" @@ -530,10 +602,13 @@ description = "GitPython is a python library used to interact with Git repositor category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "GitPython-3.1.30-py3-none-any.whl", hash = "sha256:cd455b0000615c60e286208ba540271af9fe531fa6a87cc590a7298785ab2882"}, {file = "GitPython-3.1.30.tar.gz", hash = "sha256:769c2d83e13f5d938b7688479da374c4e3d49f71549aaf462b646db9602ea6f8"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] gitdb = ">=4.0.1,<5" @@ -545,6 +620,7 @@ description = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" category = "main" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "h11-0.14.0-py3-none-any.whl", hash = "sha256:e3fe4ac4b851c468cc8363d500db52c2ead036020723024a109d37346efaa761"}, {file = "h11-0.14.0.tar.gz", hash = "sha256:8f19fbbe99e72420ff35c00b27a34cb9937e902a8b810e2c88300c6f0a3b699d"}, @@ -553,14 +629,23 @@ files = [ [[package]] name = "identify" version = "2.5.12" +======= + +[[package]] +name = "identify" +version = "2.5.13" +>>>>>>> 7d23328 (YouChat update) description = "File identification library for Python" category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "identify-2.5.12-py2.py3-none-any.whl", hash = "sha256:e8a400c3062d980243d27ce10455a52832205649bbcaf27ffddb3dfaaf477bad"}, {file = "identify-2.5.12.tar.gz", hash = "sha256:0bc96b09c838310b6fcfcc61f78a981ea07f94836ef6ef553da5bb5d4745d662"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.extras] license = ["ukkonen"] @@ -572,10 +657,13 @@ description = "Internationalized Domain Names in Applications (IDNA)" category = "main" optional = false python-versions = ">=3.5" +<<<<<<< HEAD files = [ {file = "idna-3.4-py3-none-any.whl", hash = "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"}, {file = "idna-3.4.tar.gz", hash = "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "iniconfig" @@ -584,10 +672,13 @@ description = "brain-dead simple config-ini parsing" category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "isort" @@ -596,19 +687,28 @@ description = "A Python utility / library to sort Python imports." category = "dev" optional = false python-versions = ">=3.7.0" +<<<<<<< HEAD files = [ {file = "isort-5.11.4-py3-none-any.whl", hash = "sha256:c033fd0edb91000a7f09527fe5c75321878f98322a77ddcc81adbd83724afb7b"}, {file = "isort-5.11.4.tar.gz", hash = "sha256:6db30c5ded9815d813932c04c2f85a360bcdd35fed496f4d8f35495ef0a261b6"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] colorama = {version = ">=0.4.3,<0.5.0", optional = true, markers = "extra == \"colors\""} [package.extras] colors = ["colorama (>=0.4.3,<0.5.0)"] +<<<<<<< HEAD pipfile-deprecated-finder = ["pipreqs", "requirementslib"] plugins = ["setuptools"] requirements-deprecated-finder = ["pip-api", "pipreqs"] +======= +requirements-deprecated-finder = ["pip-api", "pipreqs"] +pipfile-deprecated-finder = ["pipreqs", "requirementslib"] +plugins = ["setuptools"] +>>>>>>> 7d23328 (YouChat update) [[package]] name = "lazy-object-proxy" @@ -617,6 +717,7 @@ description = "A fast and thorough lazy object proxy." category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "lazy-object-proxy-1.9.0.tar.gz", hash = "sha256:659fb5809fa4629b8a1ac5106f669cfc7bef26fbb389dda53b3e010d1ac4ebae"}, {file = "lazy_object_proxy-1.9.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b40387277b0ed2d0602b8293b94d7257e17d1479e257b4de114ea11a8cb7f2d7"}, @@ -655,6 +756,8 @@ files = [ {file = "lazy_object_proxy-1.9.0-cp39-cp39-win32.whl", hash = "sha256:9090d8e53235aa280fc9239a86ae3ea8ac58eff66a705fa6aa2ec4968b95c821"}, {file = "lazy_object_proxy-1.9.0-cp39-cp39-win_amd64.whl", hash = "sha256:db1c1722726f47e10e0b5fdbf15ac3b8adb58c091d12b3ab713965795036985f"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "markdownify" @@ -663,10 +766,13 @@ description = "Convert HTML to markdown." category = "main" optional = false python-versions = "*" +<<<<<<< HEAD files = [ {file = "markdownify-0.11.6-py3-none-any.whl", hash = "sha256:ba35fe289d5e9073bcd7d2cad629278fe25f1a93741fcdc0bfb4f009076d8324"}, {file = "markdownify-0.11.6.tar.gz", hash = "sha256:009b240e0c9f4c8eaf1d085625dcd4011e12f0f8cec55dedf9ea6f7655e49bfe"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] beautifulsoup4 = ">=4.9,<5" @@ -679,10 +785,13 @@ description = "McCabe checker, plugin for flake8" category = "dev" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"}, {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "mypy" @@ -691,6 +800,7 @@ description = "Optional static typing for Python" category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "mypy-0.991-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:7d17e0a9707d0772f4a7b878f04b4fd11f6f5bcb9b3813975a9b13c9332153ab"}, {file = "mypy-0.991-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0714258640194d75677e86c786e80ccf294972cc76885d3ebbb560f11db0003d"}, @@ -723,6 +833,8 @@ files = [ {file = "mypy-0.991-py3-none-any.whl", hash = "sha256:de32edc9b0a7e67c2775e574cb061a537660e51210fbf6006b0b36ea695ae9bb"}, {file = "mypy-0.991.tar.gz", hash = "sha256:3c0165ba8f354a6d9881809ef29f1a9318a236a6d81c690094c5df32107bde06"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] mypy-extensions = ">=0.4.3" @@ -742,10 +854,13 @@ description = "Experimental type system extensions for programs checked with the category = "dev" optional = false python-versions = "*" +<<<<<<< HEAD files = [ {file = "mypy_extensions-0.4.3-py2.py3-none-any.whl", hash = "sha256:090fedd75945a69ae91ce1303b5824f428daf5a028d2f6ab8a299250a846f15d"}, {file = "mypy_extensions-0.4.3.tar.gz", hash = "sha256:2d82818f5bb3e369420cb3c4060a7970edba416647068eb4c5343488a6c604a8"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "nodeenv" @@ -754,6 +869,7 @@ description = "Node.js virtual environment builder" category = "dev" optional = false python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*" +<<<<<<< HEAD files = [ {file = "nodeenv-1.7.0-py2.py3-none-any.whl", hash = "sha256:27083a7b96a25f2f5e1d8cb4b6317ee8aeda3bdd121394e5ac54e498028a042e"}, {file = "nodeenv-1.7.0.tar.gz", hash = "sha256:e0e7f7dfb85fc5394c6fe1e8fa98131a2473e04311a45afb6508f7cf1836fa2b"}, @@ -761,6 +877,8 @@ files = [ [package.dependencies] setuptools = "*" +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "outcome" @@ -769,10 +887,13 @@ description = "Capture the outcome of Python function calls." category = "main" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "outcome-1.2.0-py2.py3-none-any.whl", hash = "sha256:c4ab89a56575d6d38a05aa16daeaa333109c1f96167aba8901ab18b6b5e0f7f5"}, {file = "outcome-1.2.0.tar.gz", hash = "sha256:6f82bd3de45da303cf1f771ecafa1633750a358436a8bb60e06a1ceb745d2672"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] attrs = ">=19.2.0" @@ -784,10 +905,13 @@ description = "Core utilities for Python packages" category = "dev" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "packaging-21.3-py3-none-any.whl", hash = "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"}, {file = "packaging-21.3.tar.gz", hash = "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] pyparsing = ">=2.0.2,<3.0.5 || >3.0.5" @@ -799,6 +923,7 @@ description = "Utility library for gitignore style pattern matching of file path category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "pathspec-0.10.3-py3-none-any.whl", hash = "sha256:3c95343af8b756205e2aba76e843ba9520a24dd84f68c22b9f93251507509dd6"}, {file = "pathspec-0.10.3.tar.gz", hash = "sha256:56200de4077d9d0791465aa9095a01d421861e405b5096955051deefd697d6f6"}, @@ -807,14 +932,23 @@ files = [ [[package]] name = "pbr" version = "5.11.0" +======= + +[[package]] +name = "pbr" +version = "5.11.1" +>>>>>>> 7d23328 (YouChat update) description = "Python Build Reasonableness" category = "dev" optional = false python-versions = ">=2.6" +<<<<<<< HEAD files = [ {file = "pbr-5.11.0-py2.py3-none-any.whl", hash = "sha256:db2317ff07c84c4c63648c9064a79fe9d9f5c7ce85a9099d4b6258b3db83225a"}, {file = "pbr-5.11.0.tar.gz", hash = "sha256:b97bc6695b2aff02144133c2e7399d5885223d42b7912ffaec2ca3898e673bfe"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "pillow" @@ -823,6 +957,7 @@ description = "Python Imaging Library (Fork)" category = "main" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "Pillow-9.4.0-1-cp310-cp310-macosx_10_10_x86_64.whl", hash = "sha256:1b4b4e9dda4f4e4c4e6896f93e84a8f0bcca3b059de9ddf67dac3c334b1195e1"}, {file = "Pillow-9.4.0-1-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:fb5c1ad6bad98c57482236a21bf985ab0ef42bd51f7ad4e4538e89a997624e12"}, @@ -895,6 +1030,8 @@ files = [ {file = "Pillow-9.4.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:8f127e7b028900421cad64f51f75c051b628db17fb00e099eb148761eed598c9"}, {file = "Pillow-9.4.0.tar.gz", hash = "sha256:a1c2d7780448eb93fbcc3789bf3916aa5720d942e37945f4056680317f1cd23e"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.extras] docs = ["furo", "olefile", "sphinx (>=2.4)", "sphinx-copybutton", "sphinx-inline-tabs", "sphinx-issues (>=3.0.1)", "sphinx-removed-in", "sphinxext-opengraph"] @@ -907,6 +1044,7 @@ description = "A small Python package for determining appropriate platform-speci category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "platformdirs-2.6.2-py3-none-any.whl", hash = "sha256:83c8f6d04389165de7c9b6f0c682439697887bca0aa2f1c87ef1826be3584490"}, {file = "platformdirs-2.6.2.tar.gz", hash = "sha256:e1fea1fe471b9ff8332e229df3cb7de4f53eeea4998d3b6bfff542115e998bd2"}, @@ -915,6 +1053,12 @@ files = [ [package.extras] docs = ["furo (>=2022.12.7)", "proselint (>=0.13)", "sphinx (>=5.3)", "sphinx-autodoc-typehints (>=1.19.5)"] test = ["appdirs (==1.4.4)", "covdefaults (>=2.2.2)", "pytest (>=7.2)", "pytest-cov (>=4)", "pytest-mock (>=3.10)"] +======= + +[package.extras] +docs = ["furo (>=2022.12.7)", "proselint (>=0.13)", "sphinx-autodoc-typehints (>=1.19.5)", "sphinx (>=5.3)"] +test = ["appdirs (==1.4.4)", "covdefaults (>=2.2.2)", "pytest-cov (>=4)", "pytest-mock (>=3.10)", "pytest (>=7.2)"] +>>>>>>> 7d23328 (YouChat update) [[package]] name = "pluggy" @@ -923,10 +1067,13 @@ description = "plugin and hook calling mechanisms for python" category = "dev" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"}, {file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.extras] dev = ["pre-commit", "tox"] @@ -939,10 +1086,13 @@ description = "A framework for managing and maintaining multi-language pre-commi category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "pre_commit-2.21.0-py2.py3-none-any.whl", hash = "sha256:e2f91727039fc39a92f58a588a25b87f936de6567eed4f0e673e0507edc75bad"}, {file = "pre_commit-2.21.0.tar.gz", hash = "sha256:31ef31af7e474a8d8995027fefdfcf509b5c913ff31f2015b4ec4beb26a6f658"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] cfgv = ">=2.0.0" @@ -958,10 +1108,13 @@ description = "library with cross-python path, ini-parsing, io, code, log facili category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +<<<<<<< HEAD files = [ {file = "py-1.11.0-py2.py3-none-any.whl", hash = "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"}, {file = "py-1.11.0.tar.gz", hash = "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "pycparser" @@ -970,10 +1123,13 @@ description = "C parser in Python" category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +<<<<<<< HEAD files = [ {file = "pycparser-2.21-py2.py3-none-any.whl", hash = "sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9"}, {file = "pycparser-2.21.tar.gz", hash = "sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "pydocstyle" @@ -982,10 +1138,13 @@ description = "Python docstring style checker" category = "dev" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "pydocstyle-6.2.3-py3-none-any.whl", hash = "sha256:a04ed1e6fe0be0970eddbb1681a7ab59b11eb92729fdb4b9b24f0eb11a25629e"}, {file = "pydocstyle-6.2.3.tar.gz", hash = "sha256:d867acad25e48471f2ad8a40ef9813125e954ad675202245ca836cb6e28b2297"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] snowballstemmer = ">=2.2.0" @@ -1000,10 +1159,13 @@ description = "Pygments is a syntax highlighting package written in Python." category = "main" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "Pygments-2.14.0-py3-none-any.whl", hash = "sha256:fa7bd7bd2771287c0de303af8bfdfc731f51bd2c6a47ab69d117138893b82717"}, {file = "Pygments-2.14.0.tar.gz", hash = "sha256:b3ed06a9e8ac9a9aae5a6f5dbe78a8a58655d17b43b93c078f094ddc476ae297"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.extras] plugins = ["importlib-metadata"] @@ -1015,10 +1177,13 @@ description = "python code static checker" category = "dev" optional = false python-versions = ">=3.7.2" +<<<<<<< HEAD files = [ {file = "pylint-2.15.10-py3-none-any.whl", hash = "sha256:9df0d07e8948a1c3ffa3b6e2d7e6e63d9fb457c5da5b961ed63106594780cc7e"}, {file = "pylint-2.15.10.tar.gz", hash = "sha256:b3dc5ef7d33858f297ac0d06cc73862f01e4f2e74025ec3eff347ce0bc60baf5"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] astroid = ">=2.12.13,<=2.14.0-dev0" @@ -1045,6 +1210,7 @@ description = "pyparsing module - Classes and methods to define and execute pars category = "main" optional = false python-versions = ">=3.6.8" +<<<<<<< HEAD files = [ {file = "pyparsing-3.0.9-py3-none-any.whl", hash = "sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc"}, {file = "pyparsing-3.0.9.tar.gz", hash = "sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb"}, @@ -1052,6 +1218,11 @@ files = [ [package.extras] diagrams = ["jinja2", "railroad-diagrams"] +======= + +[package.extras] +diagrams = ["railroad-diagrams", "jinja2"] +>>>>>>> 7d23328 (YouChat update) [[package]] name = "pysocks" @@ -1060,6 +1231,7 @@ description = "A Python SOCKS client module. See https://github.com/Anorov/PySoc category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +<<<<<<< HEAD files = [ {file = "PySocks-1.7.1-py27-none-any.whl", hash = "sha256:08e69f092cc6dbe92a0fdd16eeb9b9ffbc13cadfe5ca4c7bd92ffb078b293299"}, {file = "PySocks-1.7.1-py3-none-any.whl", hash = "sha256:2725bd0a9925919b9b51739eea5f9e2bae91e83288108a9ad338b2e3a4435ee5"}, @@ -1069,14 +1241,23 @@ files = [ [[package]] name = "pytest" version = "7.2.0" +======= + +[[package]] +name = "pytest" +version = "7.2.1" +>>>>>>> 7d23328 (YouChat update) description = "pytest: simple powerful testing with Python" category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "pytest-7.2.0-py3-none-any.whl", hash = "sha256:892f933d339f068883b6fd5a459f03d85bfcb355e4981e146d2c7616c21fef71"}, {file = "pytest-7.2.0.tar.gz", hash = "sha256:c4014eb40e10f11f355ad4e3c2fb2c6c6d1919c73f3b5a433de4708202cade59"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] attrs = ">=19.2.0" @@ -1097,17 +1278,24 @@ description = "Pytest plugin for measuring coverage." category = "dev" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "pytest-cov-4.0.0.tar.gz", hash = "sha256:996b79efde6433cdbd0088872dbc5fb3ed7fe1578b68cdbba634f14bb8dd0470"}, {file = "pytest_cov-4.0.0-py3-none-any.whl", hash = "sha256:2feb1b751d66a8bd934e5edfa2e961d11309dc37b73b0eabe73b5945fee20f6b"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] coverage = {version = ">=5.2.1", extras = ["toml"]} pytest = ">=4.6" [package.extras] +<<<<<<< HEAD testing = ["fields", "hunter", "process-tests", "pytest-xdist", "six", "virtualenv"] +======= +testing = ["fields", "hunter", "process-tests", "six", "pytest-xdist", "virtualenv"] +>>>>>>> 7d23328 (YouChat update) [[package]] name = "pytest-html" @@ -1116,10 +1304,13 @@ description = "pytest plugin for generating HTML reports" category = "dev" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "pytest-html-3.2.0.tar.gz", hash = "sha256:c4e2f4bb0bffc437f51ad2174a8a3e71df81bbc2f6894604e604af18fbe687c3"}, {file = "pytest_html-3.2.0-py3-none-any.whl", hash = "sha256:868c08564a68d8b2c26866f1e33178419bb35b1e127c33784a28622eb827f3f3"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] py = ">=1.8.2" @@ -1133,10 +1324,13 @@ description = "pytest plugin for test session metadata" category = "dev" optional = false python-versions = ">=3.7,<4.0" +<<<<<<< HEAD files = [ {file = "pytest_metadata-2.0.4-py3-none-any.whl", hash = "sha256:acb739f89fabb3d798c099e9e0c035003062367a441910aaaf2281bc1972ee14"}, {file = "pytest_metadata-2.0.4.tar.gz", hash = "sha256:fcc653f65fe3035b478820b5284fbf0f52803622ee3f60a2faed7a7d3ba1f41e"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] pytest = ">=3.0.0,<8.0.0" @@ -1148,10 +1342,13 @@ description = "A tool to automatically upgrade syntax for newer versions." category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "pyupgrade-3.3.1-py2.py3-none-any.whl", hash = "sha256:3b93641963df022d605c78aeae4b5956a5296ea24701eafaef9c487527b77e60"}, {file = "pyupgrade-3.3.1.tar.gz", hash = "sha256:f88bce38b0ba92c2a9a5063c8629e456e8d919b67d2d42c7ecab82ff196f9813"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] tokenize-rt = ">=3.2.0" @@ -1163,10 +1360,13 @@ description = "python wrapper for Xvfb, Xephyr and Xvnc" category = "main" optional = false python-versions = "*" +<<<<<<< HEAD files = [ {file = "PyVirtualDisplay-3.0-py3-none-any.whl", hash = "sha256:40d4b8dfe4b8de8552e28eb367647f311f88a130bf837fe910e7f180d5477f0e"}, {file = "PyVirtualDisplay-3.0.tar.gz", hash = "sha256:09755bc3ceb6eb725fb07eca5425f43f2358d3bf08e00d2a9b792a1aedd16159"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "pyyaml" @@ -1175,6 +1375,7 @@ description = "YAML parser and emitter for Python" category = "dev" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "PyYAML-6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d4db7c7aef085872ef65a8fd7d6d09a14ae91f691dec3e87ee5ee0539d516f53"}, {file = "PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9df7ed3b3d2e0ecfe09e14741b857df43adb5a3ddadc919a2d94fbdf78fea53c"}, @@ -1233,6 +1434,26 @@ files = [ [package.extras] security = ["cryptography (>=1.3.4)", "idna (>=2.0.0)", "pyOpenSSL (>=0.14)"] socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"] +======= + +[[package]] +name = "requests" +version = "2.28.2" +description = "Python HTTP for Humans." +category = "main" +optional = false +python-versions = ">=3.7, <4" + +[package.dependencies] +certifi = ">=2017.4.17" +charset-normalizer = ">=2,<4" +idna = ">=2.5,<4" +urllib3 = ">=1.21.1,<1.27" + +[package.extras] +socks = ["PySocks (>=1.5.6,!=1.5.7)"] +use_chardet_on_py3 = ["chardet (>=3.0.2,<6)"] +>>>>>>> 7d23328 (YouChat update) [[package]] name = "requests-toolbelt" @@ -1241,10 +1462,13 @@ description = "A utility belt for advanced users of python-requests" category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +<<<<<<< HEAD files = [ {file = "requests-toolbelt-0.10.1.tar.gz", hash = "sha256:62e09f7ff5ccbda92772a29f394a49c3ad6cb181d568b1337626b2abb628a63d"}, {file = "requests_toolbelt-0.10.1-py2.py3-none-any.whl", hash = "sha256:18565aa58116d9951ac39baa288d3adb5b3ff975c4f25eee78555d89e8f247f7"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] requests = ">=2.0.1,<3.0.0" @@ -1256,10 +1480,13 @@ description = "Render rich text, tables, progress bars, syntax highlighting, mar category = "main" optional = false python-versions = ">=3.7.0" +<<<<<<< HEAD files = [ {file = "rich-13.1.0-py3-none-any.whl", hash = "sha256:f846bff22a43e8508aebf3f0f2410ce1c6f4cde429098bd58d91fde038c57299"}, {file = "rich-13.1.0.tar.gz", hash = "sha256:81c73a30b144bbcdedc13f4ea0b6ffd7fdc3b0d3cc259a9402309c8e4aee1964"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] commonmark = ">=0.9.0,<0.10.0" @@ -1275,10 +1502,13 @@ description = "ruamel.yaml is a YAML parser/emitter that supports roundtrip pres category = "dev" optional = false python-versions = ">=3" +<<<<<<< HEAD files = [ {file = "ruamel.yaml-0.17.21-py3-none-any.whl", hash = "sha256:742b35d3d665023981bd6d16b3d24248ce5df75fdb4e2924e93a05c1f8b61ca7"}, {file = "ruamel.yaml-0.17.21.tar.gz", hash = "sha256:8b7ce697a2f212752a35c1ac414471dc16c424c9573be4926b56ff3f5d23b7af"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] "ruamel.yaml.clib" = {version = ">=0.2.6", markers = "platform_python_implementation == \"CPython\" and python_version < \"3.11\""} @@ -1294,6 +1524,7 @@ description = "C version of reader, parser and emitter for ruamel.yaml derived f category = "dev" optional = false python-versions = ">=3.5" +<<<<<<< HEAD files = [ {file = "ruamel.yaml.clib-0.2.7-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d5859983f26d8cd7bb5c287ef452e8aacc86501487634573d260968f753e1d71"}, {file = "ruamel.yaml.clib-0.2.7-cp310-cp310-macosx_12_0_arm64.whl", hash = "sha256:debc87a9516b237d0466a711b18b6ebeb17ba9f391eb7f91c649c5c4ec5006c7"}, @@ -1330,6 +1561,8 @@ files = [ {file = "ruamel.yaml.clib-0.2.7-cp39-cp39-win_amd64.whl", hash = "sha256:184faeaec61dbaa3cace407cffc5819f7b977e75360e8d5ca19461cd851a5fc5"}, {file = "ruamel.yaml.clib-0.2.7.tar.gz", hash = "sha256:1f08fd5a2bea9c4180db71678e850b995d2a5f4537be0e94557668cf0f5f9497"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "safety" @@ -1338,10 +1571,13 @@ description = "Checks installed dependencies for known vulnerabilities and licen category = "dev" optional = false python-versions = "*" +<<<<<<< HEAD files = [ {file = "safety-2.3.5-py3-none-any.whl", hash = "sha256:2227fcac1b22b53c1615af78872b48348661691450aa25d6704a5504dbd1f7e2"}, {file = "safety-2.3.5.tar.gz", hash = "sha256:a60c11f8952f412cbb165d70cb1f673a3b43a2ba9a93ce11f97e6a4de834aa3a"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] Click = ">=8.0.2" @@ -1349,10 +1585,16 @@ dparse = ">=0.6.2" packaging = ">=21.0,<22.0" requests = "*" "ruamel.yaml" = ">=0.17.21" +<<<<<<< HEAD setuptools = ">=19.3" [package.extras] github = ["jinja2 (>=3.1.0)", "pygithub (>=1.43.3)"] +======= + +[package.extras] +github = ["pygithub (>=1.43.3)", "jinja2 (>=3.1.0)"] +>>>>>>> 7d23328 (YouChat update) gitlab = ["python-gitlab (>=1.3.0)"] [[package]] @@ -1362,10 +1604,13 @@ description = "" category = "main" optional = false python-versions = "~=3.7" +<<<<<<< HEAD files = [ {file = "selenium-4.7.2-py3-none-any.whl", hash = "sha256:06a1c7d9f313130b21c3218ddd8852070d0e7419afdd31f96160cd576555a5ce"}, {file = "selenium-4.7.2.tar.gz", hash = "sha256:3aefa14a28a42e520550c1cd0f29cf1d566328186ea63aa9a3e01fb265b5894d"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] certifi = ">=2021.10.8" @@ -1374,6 +1619,7 @@ trio-websocket = ">=0.9,<1.0" urllib3 = {version = ">=1.26,<2.0", extras = ["socks"]} [[package]] +<<<<<<< HEAD name = "setuptools" version = "65.6.3" description = "Easily download, build, install, upgrade, and uninstall Python packages" @@ -1391,16 +1637,21 @@ testing = ["build[virtualenv]", "filelock (>=3.4.0)", "flake8 (<5)", "flake8-202 testing-integration = ["build[virtualenv]", "filelock (>=3.4.0)", "jaraco.envs (>=2.2)", "jaraco.path (>=3.2.0)", "pytest", "pytest-enabler", "pytest-xdist", "tomli", "virtualenv (>=13.0.0)", "wheel"] [[package]] +======= +>>>>>>> 7d23328 (YouChat update) name = "shellingham" version = "1.5.0.post1" description = "Tool to Detect Surrounding Shell" category = "main" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "shellingham-1.5.0.post1-py2.py3-none-any.whl", hash = "sha256:368bf8c00754fd4f55afb7bbb86e272df77e4dc76ac29dbcbb81a59e9fc15744"}, {file = "shellingham-1.5.0.post1.tar.gz", hash = "sha256:823bc5fb5c34d60f285b624e7264f4dda254bc803a3774a147bf99c0e3004a28"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "six" @@ -1409,10 +1660,13 @@ description = "Python 2 and 3 compatibility utilities" category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" +<<<<<<< HEAD files = [ {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "smmap" @@ -1421,10 +1675,13 @@ description = "A pure Python implementation of a sliding window memory map manag category = "dev" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "smmap-5.0.0-py3-none-any.whl", hash = "sha256:2aba19d6a040e78d8b09de5c57e96207b09ed71d8e55ce0959eeee6c8e190d94"}, {file = "smmap-5.0.0.tar.gz", hash = "sha256:c840e62059cd3be204b0c9c9f74be2c09d5648eddd4580d9314c3ecde0b30936"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "sniffio" @@ -1433,10 +1690,13 @@ description = "Sniff out which async library your code is running under" category = "main" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "sniffio-1.3.0-py3-none-any.whl", hash = "sha256:eecefdce1e5bbfb7ad2eeaabf7c1eeb404d7757c379bd1f7e5cce9d8bf425384"}, {file = "sniffio-1.3.0.tar.gz", hash = "sha256:e60305c5e5d314f5389259b7f22aaa33d8f7dee49763119234af3755c55b9101"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "snowballstemmer" @@ -1445,10 +1705,13 @@ description = "This package provides 29 stemmers for 28 languages generated from category = "dev" optional = false python-versions = "*" +<<<<<<< HEAD files = [ {file = "snowballstemmer-2.2.0-py2.py3-none-any.whl", hash = "sha256:c8e1716e83cc398ae16824e5572ae04e0d9fc2c6b985fb0f900f5f0c96ecba1a"}, {file = "snowballstemmer-2.2.0.tar.gz", hash = "sha256:09b16deb8547d3412ad7b590689584cd0fe25ec8db3be37788be3810cbf19cb1"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "sortedcontainers" @@ -1457,10 +1720,13 @@ description = "Sorted Containers -- Sorted List, Sorted Dict, Sorted Set" category = "main" optional = false python-versions = "*" +<<<<<<< HEAD files = [ {file = "sortedcontainers-2.4.0-py2.py3-none-any.whl", hash = "sha256:a163dcaede0f1c021485e957a39245190e74249897e2ae4b2aa38595db237ee0"}, {file = "sortedcontainers-2.4.0.tar.gz", hash = "sha256:25caa5a06cc30b6b83d11423433f65d1f9d76c4c6a0c90e3379eaa43b9bfdb88"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "soupsieve" @@ -1469,10 +1735,13 @@ description = "A modern CSS selector implementation for Beautiful Soup." category = "main" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "soupsieve-2.3.2.post1-py3-none-any.whl", hash = "sha256:3b2503d3c7084a42b1ebd08116e5f81aadfaea95863628c80a3b774a11b7c759"}, {file = "soupsieve-2.3.2.post1.tar.gz", hash = "sha256:fc53893b3da2c33de295667a0e19f078c14bf86544af307354de5fcf12a3f30d"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "stevedore" @@ -1481,10 +1750,13 @@ description = "Manage dynamic plugins for Python applications" category = "dev" optional = false python-versions = ">=3.8" +<<<<<<< HEAD files = [ {file = "stevedore-4.1.1-py3-none-any.whl", hash = "sha256:aa6436565c069b2946fe4ebff07f5041e0c8bf18c7376dd29edf80cf7d524e4e"}, {file = "stevedore-4.1.1.tar.gz", hash = "sha256:7f8aeb6e3f90f96832c301bff21a7eb5eefbe894c88c506483d355565d88cc1a"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] pbr = ">=2.0.0,<2.1.0 || >2.1.0" @@ -1496,10 +1768,13 @@ description = "A wrapper around the stdlib `tokenize` which roundtrips." category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "tokenize_rt-5.0.0-py2.py3-none-any.whl", hash = "sha256:c67772c662c6b3dc65edf66808577968fb10badfc2042e3027196bed4daf9e5a"}, {file = "tokenize_rt-5.0.0.tar.gz", hash = "sha256:3160bc0c3e8491312d0485171dea861fc160a240f5f5766b72a1165408d10740"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "toml" @@ -1508,10 +1783,13 @@ description = "Python Library for Tom's Obvious, Minimal Language" category = "dev" optional = false python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" +<<<<<<< HEAD files = [ {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "tomli" @@ -1520,10 +1798,13 @@ description = "A lil' TOML parser" category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "tomlkit" @@ -1532,10 +1813,13 @@ description = "Style preserving TOML library" category = "dev" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "tomlkit-0.11.6-py3-none-any.whl", hash = "sha256:07de26b0d8cfc18f871aec595fda24d95b08fef89d147caa861939f37230bf4b"}, {file = "tomlkit-0.11.6.tar.gz", hash = "sha256:71b952e5721688937fb02cf9d354dbcf0785066149d2855e44531ebdd2b65d73"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "trio" @@ -1544,10 +1828,13 @@ description = "A friendly Python library for async concurrency and I/O" category = "main" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "trio-0.22.0-py3-none-any.whl", hash = "sha256:f1dd0780a89bfc880c7c7994519cb53f62aacb2c25ff487001c0052bd721cdf0"}, {file = "trio-0.22.0.tar.gz", hash = "sha256:ce68f1c5400a47b137c5a4de72c7c901bd4e7a24fbdebfe9b41de8c6c04eaacf"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] async-generator = ">=1.9" @@ -1566,10 +1853,13 @@ description = "WebSocket library for Trio" category = "main" optional = false python-versions = ">=3.5" +<<<<<<< HEAD files = [ {file = "trio-websocket-0.9.2.tar.gz", hash = "sha256:a3d34de8fac26023eee701ed1e7bf4da9a8326b61a62934ec9e53b64970fd8fe"}, {file = "trio_websocket-0.9.2-py3-none-any.whl", hash = "sha256:5b558f6e83cc20a37c3b61202476c5295d1addf57bd65543364e0337e37ed2bc"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] async-generator = ">=1.10" @@ -1583,10 +1873,13 @@ description = "Typer, build great CLIs. Easy to code. Based on Python type hints category = "main" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "typer-0.4.2-py3-none-any.whl", hash = "sha256:023bae00d1baf358a6cc7cea45851639360bb716de687b42b0a4641cd99173f1"}, {file = "typer-0.4.2.tar.gz", hash = "sha256:b8261c6c0152dd73478b5ba96ba677e5d6948c715c310f7c91079f311f62ec03"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] click = ">=7.1.1,<9.0.0" @@ -1596,8 +1889,13 @@ shellingham = {version = ">=1.3.0,<2.0.0", optional = true, markers = "extra == [package.extras] all = ["colorama (>=0.4.3,<0.5.0)", "shellingham (>=1.3.0,<2.0.0)"] dev = ["autoflake (>=1.3.1,<2.0.0)", "flake8 (>=3.8.3,<4.0.0)", "pre-commit (>=2.17.0,<3.0.0)"] +<<<<<<< HEAD doc = ["mdx-include (>=1.4.1,<2.0.0)", "mkdocs (>=1.1.2,<2.0.0)", "mkdocs-material (>=8.1.4,<9.0.0)"] test = ["black (>=22.3.0,<23.0.0)", "coverage (>=5.2,<6.0)", "isort (>=5.0.6,<6.0.0)", "mypy (==0.910)", "pytest (>=4.4.0,<5.4.0)", "pytest-cov (>=2.10.0,<3.0.0)", "pytest-sugar (>=0.9.4,<0.10.0)", "pytest-xdist (>=1.32.0,<2.0.0)", "shellingham (>=1.3.0,<2.0.0)"] +======= +doc = ["mkdocs (>=1.1.2,<2.0.0)", "mkdocs-material (>=8.1.4,<9.0.0)", "mdx-include (>=1.4.1,<2.0.0)"] +test = ["shellingham (>=1.3.0,<2.0.0)", "pytest (>=4.4.0,<5.4.0)", "pytest-cov (>=2.10.0,<3.0.0)", "coverage (>=5.2,<6.0)", "pytest-xdist (>=1.32.0,<2.0.0)", "pytest-sugar (>=0.9.4,<0.10.0)", "mypy (==0.910)", "black (>=22.3.0,<23.0.0)", "isort (>=5.0.6,<6.0.0)"] +>>>>>>> 7d23328 (YouChat update) [[package]] name = "typing-extensions" @@ -1606,10 +1904,13 @@ description = "Backported and Experimental Type Hints for Python 3.7+" category = "dev" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "typing_extensions-4.4.0-py3-none-any.whl", hash = "sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e"}, {file = "typing_extensions-4.4.0.tar.gz", hash = "sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "undetected-chromedriver" @@ -1618,9 +1919,12 @@ description = "('Selenium.webdriver.Chrome replacement with compatiblity for Bra category = "main" optional = false python-versions = "*" +<<<<<<< HEAD files = [ {file = "undetected-chromedriver-3.2.1.tar.gz", hash = "sha256:3fe5b6e75b7170efa2f4c53e74bc68ba01d62a30c1a2a5773227fbdd9717d1d8"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] requests = "*" @@ -1629,22 +1933,34 @@ websockets = "*" [[package]] name = "urllib3" +<<<<<<< HEAD version = "1.26.13" +======= +version = "1.26.14" +>>>>>>> 7d23328 (YouChat update) description = "HTTP library with thread-safe connection pooling, file post, and more." category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" +<<<<<<< HEAD files = [ {file = "urllib3-1.26.13-py2.py3-none-any.whl", hash = "sha256:47cc05d99aaa09c9e72ed5809b60e7ba354e64b59c9c173ac3018642d8bb41fc"}, {file = "urllib3-1.26.13.tar.gz", hash = "sha256:c083dd0dce68dbfbe1129d5271cb90f9447dea7d52097c6e0126120c521ddea8"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] PySocks = {version = ">=1.5.6,<1.5.7 || >1.5.7,<2.0", optional = true, markers = "extra == \"socks\""} [package.extras] +<<<<<<< HEAD brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)", "brotlipy (>=0.6.0)"] secure = ["certifi", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "ipaddress", "pyOpenSSL (>=0.14)", "urllib3-secure-extra"] +======= +brotli = ["brotlicffi (>=0.8.0)", "brotli (>=1.0.9)", "brotlipy (>=0.6.0)"] +secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "urllib3-secure-extra", "ipaddress"] +>>>>>>> 7d23328 (YouChat update) socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] [[package]] @@ -1654,10 +1970,13 @@ description = "Virtual Python Environment builder" category = "dev" optional = false python-versions = ">=3.6" +<<<<<<< HEAD files = [ {file = "virtualenv-20.17.1-py3-none-any.whl", hash = "sha256:ce3b1684d6e1a20a3e5ed36795a97dfc6af29bc3970ca8dab93e11ac6094b3c4"}, {file = "virtualenv-20.17.1.tar.gz", hash = "sha256:f8b927684efc6f1cc206c9db297a570ab9ad0e51c16fa9e45487d36d1905c058"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] distlib = ">=0.3.6,<1" @@ -1675,6 +1994,7 @@ description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)" category = "main" optional = false python-versions = ">=3.7" +<<<<<<< HEAD files = [ {file = "websockets-10.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d58804e996d7d2307173d56c297cf7bc132c52df27a3efaac5e8d43e36c21c48"}, {file = "websockets-10.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:bc0b82d728fe21a0d03e65f81980abbbcb13b5387f733a1a870672c5be26edab"}, @@ -1746,6 +2066,8 @@ files = [ {file = "websockets-10.4-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:05a7233089f8bd355e8cbe127c2e8ca0b4ea55467861906b80d2ebc7db4d6b72"}, {file = "websockets-10.4.tar.gz", hash = "sha256:eef610b23933c54d5d921c92578ae5f89813438fded840c2e9809d378dc765d3"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "wrapt" @@ -1754,6 +2076,7 @@ description = "Module for decorators, wrappers and monkey patching." category = "dev" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" +<<<<<<< HEAD files = [ {file = "wrapt-1.14.1-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:1b376b3f4896e7930f1f772ac4b064ac12598d1c38d04907e696cc4d794b43d3"}, {file = "wrapt-1.14.1-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:903500616422a40a98a5a3c4ff4ed9d0066f3b4c951fa286018ecdf0750194ef"}, @@ -1820,6 +2143,8 @@ files = [ {file = "wrapt-1.14.1-cp39-cp39-win_amd64.whl", hash = "sha256:dee60e1de1898bde3b238f18340eec6148986da0455d8ba7848d50470a7a32fb"}, {file = "wrapt-1.14.1.tar.gz", hash = "sha256:380a85cf89e0e69b7cfbe2ea9f765f004ff419f34194018a6827ac0e3edfed4d"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [[package]] name = "wsproto" @@ -1828,15 +2153,115 @@ description = "WebSockets state-machine based protocol implementation" category = "main" optional = false python-versions = ">=3.7.0" +<<<<<<< HEAD files = [ {file = "wsproto-1.2.0-py3-none-any.whl", hash = "sha256:b9acddd652b585d75b20477888c56642fdade28bdfd3579aa24a4d2c037dd736"}, {file = "wsproto-1.2.0.tar.gz", hash = "sha256:ad565f26ecb92588a3e43bc3d96164de84cd9902482b130d0ddbaa9664a85065"}, ] +======= +>>>>>>> 7d23328 (YouChat update) [package.dependencies] h11 = ">=0.9.0,<1" [metadata] +<<<<<<< HEAD lock-version = "2.0" python-versions = "^3.9" content-hash = "de36633eb38870fe2d9b3c2192217cfdf18f69730bdc1724955b2ea22ed860c9" +======= +lock-version = "1.1" +python-versions = "^3.9" +content-hash = "f4ff533aea8d3f07c7c0e59386398097622ebcfffccfd7b5a711fbf938a309e6" + +[metadata.files] +ascii-magic = [] +astroid = [] +async-generator = [] +attrs = [] +bandit = [] +beautifulsoup4 = [] +black = [] +certifi = [] +cffi = [] +cfgv = [] +charset-normalizer = [] +chromedriver-autoinstaller = [] +click = [] +click-shell = [] +cloudscraper = [] +colorama = [] +commonmark = [] +coverage = [] +coverage-badge = [] +darglint = [] +dill = [] +distlib = [] +dparse = [] +exceptiongroup = [] +filelock = [] +gitdb = [] +gitpython = [] +h11 = [] +identify = [] +idna = [] +iniconfig = [] +isort = [] +lazy-object-proxy = [] +markdownify = [] +mccabe = [] +mypy = [] +mypy-extensions = [] +nodeenv = [] +outcome = [] +packaging = [] +pathspec = [] +pbr = [] +pillow = [] +platformdirs = [] +pluggy = [] +pre-commit = [] +py = [] +pycparser = [] +pydocstyle = [] +pygments = [] +pylint = [] +pyparsing = [] +pysocks = [] +pytest = [] +pytest-cov = [] +pytest-html = [] +pytest-metadata = [] +pyupgrade = [] +pyvirtualdisplay = [] +pyyaml = [] +requests = [] +requests-toolbelt = [] +rich = [] +"ruamel.yaml" = [] +"ruamel.yaml.clib" = [] +safety = [] +selenium = [] +shellingham = [] +six = [] +smmap = [] +sniffio = [] +snowballstemmer = [] +sortedcontainers = [] +soupsieve = [] +stevedore = [] +tokenize-rt = [] +toml = [] +tomli = [] +tomlkit = [] +trio = [] +trio-websocket = [] +typer = [] +typing-extensions = [] +undetected-chromedriver = [] +urllib3 = [] +virtualenv = [] +websockets = [] +wrapt = [] +wsproto = [] +>>>>>>> 7d23328 (YouChat update) diff --git a/pyproject.toml b/pyproject.toml index 3254f81..84330de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "youdotcom" -version = "1.0.23" +version = "1.0.30" description = "official api wrapper for you.com and all of its apps" readme = "README.md" authors = ["SilkePilon "] @@ -53,12 +53,12 @@ isort = {extras = ["colors"], version = "^5.11.4"} mypy = "^0.991" mypy-extensions = "^0.4.3" pre-commit = "^2.21.0" -pydocstyle = "^6.1.1" -pylint = "^2.15.9" -pytest = "^7.2.0" +pydocstyle = "^6.2.3" +pylint = "^2.15.10" +pytest = "^7.2.1" pyupgrade = "^3.3.1" safety = "^2.3.5" -coverage = "^7.0.1" +coverage = "^7.0.5" coverage-badge = "^1.1.0" pytest-html = "^3.2.0" pytest-cov = "^4.0.0" diff --git a/youdotcom/__init__.py b/youdotcom/__init__.py index 1c9c1ac..914430b 100644 --- a/youdotcom/__init__.py +++ b/youdotcom/__init__.py @@ -5,13 +5,12 @@ from importlib import metadata as importlib_metadata from .apps import Apps - -# from .youchat import Chat from .code import Code from .imagine import Imagine from .init import Init as Webdriver from .search import Search from .write import Write +from .youchat import Chat def get_version() -> str: diff --git a/youdotcom/__main__.py b/youdotcom/__main__.py index ace65d2..939c30b 100644 --- a/youdotcom/__main__.py +++ b/youdotcom/__main__.py @@ -66,6 +66,19 @@ def write(): print("Total time taken: " + text["time"]) +@app.command() +def chat(): + from youdotcom import Chat # import the write class + + inputstr = input("Enter a message: ") + print("Please wait...") + text = Chat.send_message(f"{inputstr}") # make an api call + + print(text["message"]) # print the AI made text + + print("Total time taken: " + text["time"]) + + @app.command() def clear(): try: diff --git a/youdotcom/test.py b/youdotcom/test.py index c39381d..17587e0 100644 --- a/youdotcom/test.py +++ b/youdotcom/test.py @@ -1,3 +1,13 @@ -import write +from youchat import Chat -print(write.Write.write("an email")) +from youdotcom import Webdriver + +driver = Webdriver(webdriver_path="/usr/bin/chromedriver", hide=True).driver # setting up the webdriver. use `webdriver_path=` if the pre-installed one does not work. + + +chat = Chat.send_message(driver=driver, message="how to make an python loop?") # send a message to YouChat. passing the driver and messages + +driver.close() # close the webdriver + + +print(chat["message"]) # {'message': "It's been great! How about yours?", 'time': '11', 'error': 'False'} diff --git a/youdotcom/youchat.py b/youdotcom/youchat.py index d4182c3..9049685 100644 --- a/youdotcom/youchat.py +++ b/youdotcom/youchat.py @@ -6,6 +6,7 @@ import time import chromedriver_autoinstaller +import cloudscraper import markdownify import undetected_chromedriver as uc import urllib3 @@ -49,50 +50,23 @@ def send_message(driver, message: str) -> dict: start = time.time() # Ensure that the Cloudflare cookies is still valid - driver.get("https://you.com/search?q=" + message + "&tbm=youchat") + driver.get("https://you.com/api/youchatStreaming?question=" + message + "&chat=[]") - # Send the message + textdatastr = ( + str( + driver.page_source.replace("event: token", "") + .replace('data: {"token": "', "") + .replace('
event: serp_results', "")
+                .replace("
", "") + .replace("\n", "") + .replace('"}', "") + ) + .replace("event: donedata: I'm Mr. Meeseeks. Look at me.", "") + .split("]} ", 1)[1] + ) - WebDriverWait(driver, 5).until(EC.element_to_be_clickable((By.TAG_NAME, "textarea"))) - textbox = driver.find_element(By.TAG_NAME, "textarea") + msg = markdownify.markdownify(textdatastr) - # Sending emoji (from https://stackoverflow.com/a/61043442) - # textbox.click() - # driver.execute_script( - # """ - # var element = arguments[0], txt = arguments[1]; - # element.value += txt; - # element.dispatchEvent(new Event('change')); - # """, - # textbox, - # message, - # ) - # textbox.send_keys(Keys.ENTER) - - # Wait for the response to be ready - - WebDriverWait(driver, 15).until(EC.presence_of_element_located((By.XPATH, '//*[@id="chatHistory"]/div/div[2]/p/p'))) - - # Get the response element - - response = driver.find_element(By.XPATH, '//*[@id="chatHistory"]/div/div[2]') - - # Check if the response is an error - - # Return the response - msg = markdownify.markdownify(response.text) - - # type(headers) == str - - # while True: - # try: - # if WebDriverWait(driver, 10).until(EC.text_to_be_present_in_element((By.CLASS_NAME, "flex-1 text-ellipsis max-h-5 overflow-hidden break-all relative"), "New Chat")): - # text = driver.find_elements( - # By.XPATH, '//*[@id="__next"]/div/div[2]/div/div/nav/div/div/a[1]/div[1]' - # )[-1].text - # break - # except: - # continue timedate = time.time() - start timedate = time.strftime("%S", time.gmtime(timedate)) if "Oops, I’m still learning and I couldn’t generate an answer right now. Please try again." in msg: