반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 왕초보 파이썬 실행
- Uipath 설치방법
- 날짜 정규식
- 파이썬네이버부동산
- 네이버커머스API
- Python
- 가상환경설치
- pycdas.exe
- uipath 입문
- 네이버 로그인 캡챠해결
- 파이썬 가상환경 설치방법
- 네이버 로그인 영수증 해결
- pycdc.exe
- 네이버매물크롤링
- 파이썬 환경설정
- selenium
- Element is not clickable at point
- pywinauto 윈도우
- 파이썬 네이버 로그인
- 파이썬 가상환경 설치
- Selenium 셀렉터잡기
- 네이버 로그인 하기
- UiPath
- pywinauto 윈도우제어
- 커머스API
- venv 설치
- 네이버부동산크롤링
- vscode venv 설치
- Uipath 기초
- pywinauto
Archives
- Today
- Total
콘솔워크
입력 받은 글을 다시 작성해주는 Smodin Rewriter API 본문
반응형
https://rapidapi.com/smodin/api/rewriter-paraphraser-text-changer-multi-language
Smodin - Text Rewriter, Paraphraser, & Spinner API | RapidAPI
Our rewriter changes the syntax, structure, word/phrase order, and uses synonyms when relevant. This rewriter works in in all major languages (english, german, spanish, french, arabic, Chinese, and many more). Max character count of 10,000. Questions? See
rapidapi.com
무료 플랜으로도 한달에 200회 호출 가능해서 써볼만 하다.
def smodin_rewrite(content: str):
print(content)
payload = {"language": "ko", "strength": 3, "text": f"{content}"}
headers = {
"content-type": "application/json",
"X-RapidAPI-Key": "API키를 발급받으세요.",
"X-RapidAPI-Host": "rewriter-paraphraser-text-changer-multi-language.p.rapidapi.com",
}
response = requests.request(
"POST",
"https://rewriter-paraphraser-text-changer-multi-language.p.rapidapi.com/rewrite",
json=payload,
headers=headers,
)
print(response.text)
return response.text
response의 응답을 얻는 방법 3가지
# 바이너리 원문을 얻을 수 있습니다.
response.content
# UTF-8로 인코딩된 문자열을 얻을 수 있습니다.
response.text
# dictionary 객체를 얻을 수 있습니다.
response.json()
반응형
'프로그래밍 > python' 카테고리의 다른 글
메모장에서 글 한 줄씩 읽어오기 (0) | 2023.01.10 |
---|---|
[정규식] 한글 영어 숫자만 가져오는 정규식 (0) | 2023.01.09 |
간단하게 내용을 스크랩하는 라이브러리 newspaper3k (0) | 2023.01.03 |
python 배열 합치기 (+ 연산자) 및 배열에서 요소 제거 (0) | 2023.01.02 |
작업중인 브라우저창을 보이고 싶지 않지만 headless 옵션을 사용할 수 없는 경우 (1) | 2022.12.30 |