Python krcert page posting info script

# -*- coding: utf-8 -*-
import re
import requests
url = ‘’
recvd = requests.get(url)
tbody = re.findall(r'<tbody>.+?</tbody>’, recvd.text, re.DOTALL)
for line in tbody:
# print line
temp = re.findall(r'<a href=”/data/secNoticeView\.do\?bulletin_writing_sequence=[0-9][0-9][0-9][0-9][0-9]\”>(.+?)</a>’,line)
temp_date = re.findall(r’2016.[1-9][0-9].[1-9][0-9]’,line)
for i in range(0, 20, 1):
print temp[i],temp_date[i]

print ‘done’


Author: SK,Seo

Me! Name: SK Seo

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s