Skip to content

Instantly share code, notes, and snippets.

View NeedPainkiller's full-sized avatar
🛹
Freelancer

NeedPainkiller NeedPainkiller

🛹
Freelancer
View GitHub Profile
<map id=\"ATTABZAA001R08\">
<pubcUserNo/>
<mobYn>N</mobYn>
<inqrTrgtClCd>1</inqrTrgtClCd>
<txprDscmNo>3051577349</txprDscmNo>
<dongCode>15</dongCode>
<psbSearch>Y</psbSearch>
<map id=\"userReqInfoVO\"/>
</map>
const axios = require('axios') // http 모듈
const xml2js = require('xml2js') // xml 파싱 모듈
// 국세청 사업자번호 조회 API [POST]
const postUrl = "https://teht.hometax.go.kr/wqAction.do?actionId=ATTABZAA001R08&screenId=UTEABAAA13&popupYn=false&realScreenId="
// API 에 raw 로 올라갈 xml 데이터
const xmlRaw = "<map id=\"ATTABZAA001R08\"><pubcUserNo/><mobYn>N</mobYn><inqrTrgtClCd>1</inqrTrgtClCd><txprDscmNo>{CRN}</txprDscmNo><dongCode>15</dongCode><psbSearch>Y</psbSearch><map id=\"userReqInfoVO\"/></map>"
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Xml;
// dotnet run .\Program.cs 3051577349 8995800075 8996300123 8997600079 8997700057 1010540144 1010863774 1011127195 1011230533 1011268892 1011275340 1011652137 1012151049 1020361041 1021551153
// dotnet publish -c Release -f netcoreapp2.1 -r win10-x64
namespace CRN_Dotnet
{
import sys
import requests
import xml.etree.ElementTree as ElementTree
import win32clipboard
# python .\CRN.py 3051577349 8995800075 8996300123 8997600079 8997700057 1010540144 1010863774 1011127195 1011230533 1011268892 1011275340 1011652137 1012151049 1020361041 1021551153
# pyinstaller .\CRN.py --onefile --nowindowed
PostUrl = "https://teht.hometax.go.kr/wqAction.do?actionId=ATTABZAA001R08&screenId=UTEABAAA13&popupYn=false&realScreenId="
XmlRaw = "<map id=\"ATTABZAA001R08\"><pubcUserNo/><mobYn>N</mobYn><inqrTrgtClCd>1</inqrTrgtClCd><txprDscmNo>\{CRN\}</txprDscmNo><dongCode>15</dongCode><psbSearch>Y</psbSearch><map id=\"userReqInfoVO\"/></map>"
import sys
import requests
import xml.etree.ElementTree as ElementTree
PostUrl = "https://teht.hometax.go.kr/wqAction.do?actionId=ATTABZAA001R08&screenId=UTEABAAA13&popupYn=false&realScreenId="
XmlRaw = "<map id=\"ATTABZAA001R08\"><pubcUserNo/><mobYn>N</mobYn><inqrTrgtClCd>1</inqrTrgtClCd><txprDscmNo>\{CRN\}</txprDscmNo><dongCode>15</dongCode><psbSearch>Y</psbSearch><map id=\"userReqInfoVO\"/></map>"
def call(crn):
res = requests.post(PostUrl, data=XmlRaw.replace("\{CRN\}", crn), headers={'Content-Type': 'text/xml'})
@NeedPainkiller
NeedPainkiller / git 테스트.txt
Last active September 5, 2019 06:19
Git 테스트
// git reset hard
git fetch
git reset --hard "커밋 ID"
// git remote 확인
git remote -v
// git remote 재설정
git remote remove origin
git remote add origin "계정명"@"repo 경로"