본문 바로가기

반응형
SMALL

Programming/Python

(29)
UnsupportedOperation : not readable https://doctorson0309.tistory.com/439 7. UnsupportedOperation : not readable 파이썬 프로그램을 실행하던 도중 아래와 같은 에러에 직면하였습니다. 에러명 UnsupportedOperation : not readable 해결방법 r+ 모드로 옵션을 변경합니다. 파일을 여는 것(open)과 관련된 함수를 찾아서, doctorson0309.tistory.com file = open('miss.txt', 'r', encoding='utf8')
[Python] 파이썬 파일 입출력(파일 생성, 읽기, 쓰기, 이어쓰기) https://coding-factory.tistory.com/995 [Python] 파이썬 파일 입출력(파일 생성, 읽기, 쓰기, 이어쓰기) 총정리 프로그래밍에서 유의미한 데이터가 생성되었다면 이것을 어딘가에 기록해두어야 합니다. DB를 사용하면 가장 좋겠지만 간단한 데이터들은 DB를 사용하지 않고 파일 형태(ex : txt 파일)로 어딘가 coding-factory.tistory.com
API를 활용하여 티스토리 글쓰기 import requests access_token = '' tistoryUrl = "https://www.tistory.com/apis/post/write?" parameters = { 'access_token': access_token, 'blogName': 'berea', 'title': '포기란 없다!', 'content': "포기란 없다!\nDon't give up!", 'visibility': '1', ## 아래쪽에 방법에 대하여 설명예정!! 'category': '', 'tag': 'english, liveacademy, 영어회화, 영어운동', 'acceptComment': '1' } response = requests.post(tistoryUrl, params=parameters) prin..
티스토리 API - 카테고리 목록 가져오기 import requests appid = "" access_token = "" callback_url = "" blogName = "" def list_of_Category(): url = "https://www.tistory.com/apis/category/list" params = { 'access_token': access_token, 'output': 'json', # json, xml 두 가지 형식 지원 'blogName': blogName # ().tistory.com 또는 블로그 주소 전체 } res = requests.get(url, params=params) if res.status_code == 200: res_json = res.json() print(res_json) if __na..
Python Tutorials https://thepythoncode.com/ The Python Code - Python Programming Tutorials, Programming Tools & Recipes Practical Python PDF Processing EBook A practical guide that enables developers to unlock Python's full potential in manipulating and processing PDFs. This book covers essential tasks like reading, splitting, merging, and data extraction, along with advanc thepythoncode.com
How to Make a YouTube Audio Downloader in Python https://thepythoncode.com/article/build-a-youtube-mp3-downloader-tkinter-python How to Make a YouTube Audio Downloader in Python - The Python Code Learn how to build a GUI app that downloads audio (MP3) files from YouTube videos using Pytube and Tkinter libraries in Python. thepythoncode.com
Python을 통해 PDF에서 텍스트를 일괄 추출하는 방법 https://okky.kr/articles/1475983 OKKY - Python을 통해 PDF에서 텍스트를 일괄 추출하는 방법 PDF 파일은 문서 형식의 일상 업무에서 매우 일반적으로 사용됩니다. 때로는 후속 처리를 위해 PDF에서 텍스트를 추출해야 할 때가 있습니다. 문서 수가 적은 경우 수동으로 복사하여 붙여넣기하 okky.kr
FastAPI https://fastapi.tiangolo.com/ko/ FastAPI FastAPI framework, high performance, easy to learn, fast to code, ready for production fastapi.tiangolo.com
파이썬으로 이미지에서 글자 추출하기[pytesseract Libarary] 글자 추출하려고 했던 이미지 import pytesseract from PIL import Image pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe' print(pytesseract.image_to_string(Image.open('IMG_3365.jpg'), lang='kor+eng')) 결과: A: What's that smell? It's smells like something is burning. SA MAWAI? SI7t EHS YAW LEE GI, (mh N B: Oh, | just started burning (| just lit up) some incense. Does it smel..
Python Lambda Function

반응형
LIST