you-opensource / you-python Goto Github PK
View Code? Open in Web Editor NEWA python library for you.com and all of its apps.
License: MIT License
A python library for you.com and all of its apps.
License: MIT License
it seems ,In version 1.2.0 can use BETTERAPI_API_KEY to call you chat.
Where can I register to get it.
Steps to reproduce the behavior:
python --version
Hi there im the owner of betterapi. I recently noticed that the api is becoming a bit slow. So my idea is that i make an docker container that can contribute to the api. When an api call is made an request is send to all docker containers and it will be processed there and send back to the original request. You can host your own version too.
Note that this is just an idea and not an promise.
Feedback is appreciated!
Ever since the "web" version started to require "sign up/in", the API does not work anymore.
What url dit you use: f"https://api.betterapi.net/youdotcom/chat?message={message}&key={api_key}"
with key from: https://api.betterapi.net/
issues
.Hello! I wonder if this is an official library or reverse engineering one?
Hello,
Thanks for this nice API on You.com.
Actually the number of requests allowed is 5 per minute. Will this number be increased in the future or are there any subscription API planned?
When I executed the following source in python as specified, an error in the subject was detected and it did not work properly.
What url dit you use: (remove your api key before posting it here)
https://betterapi.net/about/
from youdotcom import Chat # import all the classes
import requests # import requests for the api call
API_KEY = "today_create_key" # your api key
url = "https://api.betterapi.net/youdotcom/chat?message=hello&key=" + API_KEY # set api url
json = requests.get(url).json() # load json form api
print(json.keys()) # print -> dict_keys(['error'])
print(json["error"]) # print -> Error, not likly made by you: not enough values to unpack (expected 2, got 1)
print(json["message"]) # print -> KeyError: 'message'
Hope to see chat replies.
Traceback (most recent call last):
File "/home/username/.local/bin/youdotcom", line 5, in <module>
from youdotcom.__main__ import app
File "/home/username/.local/lib/python3.11/site-packages/youdotcom/__init__.py", line 13, in <module>
from .youchat import Chat
File "/home/username/.local/lib/python3.11/site-packages/youdotcom/youchat.py", line 13, in <module>
import undetected_chromedriver.v2 as uc
ModuleNotFoundError: No module named 'undetected_chromedriver.v2'
Steps to reproduce the behavior:
youdotcom
in the terminal)youdotcom
Steps to reproduce the behavior:
The error:
YouShell > chat
Enter a message: what is Earth diameter
Enter webdriver_path (press enter for none):
Please wait...
KeyError: 'message'
YouShell >
python --version
Trying to access to the youchat API. Got the api_key from better api but it seems having some error. The api return as title and below:
{"error":"Error, not likly made by you: invisibility_of_element() missing 1 required positional argument: 'element'"}
Not sure what is the missing element.
Thanks in advance.
from youdotcom import Chat # import all the classes
chat = Chat.send_message(message="how is your day?", api_key="today_generated_key") # send a message to YouChat. passing the message and your api key.
print(chat) # returns the message and some other data
API shall return as chat behaviour as Youchat.
Running on Mac OS M1 chip using Python 3.9.16
{'message': 'cloudflare error', 'time': '18', 'status_code': 503}
Steps to reproduce the behavior:
from youdotcom import Chat # import all the classes
chat = Chat.send_message(message="ΠΡΠΈΠ²Π΅Ρ ΠΊΠ°ΠΊ Π΄Π΅Π»Π°?", api_key="") # send a message to YouChat. passing the message and your api key.
print(chat) # returns the message and some other data
Error 1033
Ray ID: 7e50aeca09cf691b β’
2023-07-11 11:24:54 UTC
Argo Tunnel error
What happened?
You've requested a page on a website (api.betterapi.net) that is on the Cloudflare network. The host (api.betterapi.net) is configured as an Argo Tunnel, and Cloudflare is currently unable to resolve it.
Hi. Thank you for a good tool, it remains to finalize only. I found such a bug that when requesting any information in two languages, or a request of more than 40-60 characters (I did not find the exact limit), server restarting returns.., check the logs via the api. Thank you in advance. I read that you are going to make subscriptions. I'm counting times you.com it is not aimed at earning money, then it is desirable that the services created on its basis are also not for earning. To live either on donations, or by attracting investors (to fight off through advertising, or another way of monetization)
is betterapi.net is down?
How to solve the problem?
Code:
search_result = Search.search_for('test')
Error:
cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.