Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ussage of escapeLinks api option #3

Open
ssoto opened this issue Jun 30, 2021 · 0 comments
Open

Ussage of escapeLinks api option #3

ssoto opened this issue Jun 30, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ssoto
Copy link

ssoto commented Jun 30, 2021

Hi, related with andaluh-py issue, I bring this benahviour:

from urllib.parse import urlencode
import requests
content = """Hola esto es una URL:    https://twitter.com/OficinaEspanol  Respetala porfa"""
encoded_url_params = urlencode({"spanish": content, "escapeLinks": True})
response = requests.get(f"https://api.andaluh.es/epa?{encoded_url_params}")

response.json()

Out[7]: 
{'spanish': 'Hola esto es una URL:    https://twitter.com/OficinaEspanol  Respetala porfa',
 'andaluh': 'Ola êtto êh una ÛL-L:    https://twitter.com/OfiçinaÊppanôh  Rêppetala porfa',
 'rules': {'vaf': 'ç', 'vvf': 'h', 'escapeLinks': True}}

I used escapeLinks option but URL is transcripted, I'm using it in the right way?

@fontanon fontanon added the bug Something isn't working label Jul 2, 2021
@fontanon fontanon self-assigned this Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants