Coder Social home page Coder Social logo

you-python's People

Contributors

danparizher avatar dependabot[bot] avatar itbrok avatar silkepilon avatar unfortunatelyalex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

you-python's Issues

Where to get api-key ?

it seems ,In version 1.2.0 can use BETTERAPI_API_KEY to call you chat.
Where can I register to get it.

message return ""

πŸ› Bug Report

πŸ”¬ How To Reproduce

Steps to reproduce the behavior:

  1. ...

Code sample

Environment

  • OS: [e.g. Linux / Windows / macOS]
  • Python version, get it with:
python --version

Screenshots

πŸ“ˆ Expected behavior

πŸ“Ž Additional context

Contribute to the api using docker & self hosting

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!

Number of requests allowed

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?

I get this error "ValueError: not enough values to unpack (expected 2, got 1)"

πŸ”§ API Error Report

When I executed the following source in python as specified, an error in the subject was detected and it did not work properly.

πŸ”¬ How To Reproduce (url used)

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'


Screenshots

πŸ“ˆ Expected behavior

Hope to see chat replies.

πŸ“Ž Additional context

No module named 'undetected_chromedriver.v2'

πŸ› Bug Report

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'

πŸ”¬ How To Reproduce

Steps to reproduce the behavior:

  1. Interact with package in any way (such as running youdotcom in the terminal)

Code sample

youdotcom

Environment

  • OS: Linux
  • Python version: 3.11.1

Error when try chat

πŸ› Bug Report

πŸ”¬ How To Reproduce

Steps to reproduce the behavior:

  1. Chat open with Python3 youdotcom

Code sample

The error:

YouShell > chat
Enter a message: what is Earth diameter
Enter webdriver_path (press enter for none):
Please wait...
KeyError: 'message'
YouShell >

Environment

  • OS: Linux
  • Python version, get it with: 3.9
python --version

Screenshots

πŸ“ˆ Expected behavior

πŸ“Ž Additional context

{"error":"Error, not likly made by you: invisibility_of_element() missing 1 required positional argument: 'element'"}

πŸ”§ API Error Report

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.

Screenshots

image

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

πŸ“ˆ Expected behavior

API shall return as chat behaviour as Youchat.

πŸ“Ž Additional context

Running on Mac OS M1 chip using Python 3.9.16

{'message': 'cloudflare error', 'time': '18', 'status_code': 503}

πŸ› Bug Report

{'message': 'cloudflare error', 'time': '18', 'status_code': 503}

πŸ”¬ How To Reproduce

Steps to reproduce the behavior:

  1. Run Example Code of YouChat

Code sample

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.

you can get an api key form the site: https://api.betterapi.net/ (with is also made by me)

print(chat) # returns the message and some other data

Environment

  • OS: Windows 11
  • Python version: 3.9

https://api.betterapi.net/ giving cloudflare error

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.
Screenshot_20230711-165615

Bug, either 2 languages or a request of more than 40-60 characters, with api

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)

cloudscraper.exceptions.CloudflareChallengeError

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.