This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <map id=\"ATTABZAA001R08\"> | |
| <pubcUserNo/> | |
| <mobYn>N</mobYn> | |
| <inqrTrgtClCd>1</inqrTrgtClCd> | |
| <txprDscmNo>3051577349</txprDscmNo> | |
| <dongCode>15</dongCode> | |
| <psbSearch>Y</psbSearch> | |
| <map id=\"userReqInfoVO\"/> | |
| </map> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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>" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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>" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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'}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 경로" |
OlderNewer