[파이썬]쿠팡파트너스 워드프레스 자동 포스팅 수정
# Script/Python2022. 12. 26. 14:50[파이썬]쿠팡파트너스 워드프레스 자동 포스팅 수정

어느날부터 자동포스팅이 되지 않아 확인해보니 아래와 같이 에러를 뿜뿜 strIsFreeShipping = bool(productdata[i]['isFreeShipping']) KeyError: 'isFreeShipping' 디버깅해보니 isFreeShipping정보가 사라짐. 관련 내용은 모두 주석처리함. strIsFreeShipping = bool(productdata[i]['isFreeShipping']) if strIsFreeShipping == True: strIFFreeship = '배송비는 무료이며,' else: strIFFreeship = '배송비는 아래 배송도착일 확인 링크에서 확인 가능하며,' ''' + strIFFreeship + ''',

[파이썬]워드프레스 자동포스팅
# Script/Python2022. 10. 13. 19:06[파이썬]워드프레스 자동포스팅

from wordpress_xmlrpc import Client from wordpress_xmlrpc import WordPressPost from wordpress_xmlrpc.methods import posts wp = Client('http://워드프레스 주소/xmlrpc.php', '아이디', '비밀번호') post = WordPressPost() post.title = 'My new title' post.content = 'This is the body of my new post.' post.terms_names = { 'post_tag': ['test', 'firstpost'], 'category': ['Introductions', 'Tests'] } post.post_status = "p..

아파치 메소드(method) 제한 및 확인
# Web&WAS/Apache2021. 11. 4. 20:03아파치 메소드(method) 제한 및 확인

메소드 확인방법 $ curl -v -X OPTIONS http://localhost httpd.conf 설정 사이에 설정 해당경로만 메소드 제한걸리는 단점 하위폴더는 안됨! 아래처럼 으로 url pattern으로 차단해야함 Order deny,allow Deny from all

image