There are many people in the world who think about it, and it seems that there is something called Iranechkei that can only be viewed by the Japan Broadcasting Corporation. (Although it was quite a while ago) So, I wanted to think about what kind of processing would be done when I brought it digitally.
--Posted on April 28, 2020 --2020/4/29 I changed it because I was notified that the tag should be Python instead of Python3 by the function of add summary and edit request?
--Disable viewing of radio waves owned by a specific organization. => From a net perspective, disable access to domains owned by a particular organization
This time, 2. is used.
This time, I will take as an example the Japan Broadcasting Corporation, which was the key to thinking. I have no intention.
python3.8
import requests
import re
url = 'https://whois.jprs.jp/?key=Japan Broadcasting Corporation&type=DOM-HOLDER'
res = requests.get(url)
result = [m.span() for m in re.finditer('dom">.*.JP', res.text)]
for i in range(len(result)):
print(res.text[result[i][0] + 5:result[i][1]])
I was able to output. Oh, close your eyes to the dirty code.
Output result
NHK.OR.JP
NHK.JP
NHK-KEIZAI.JP
NHK1S.JP
NHK-ONDEMAND.JP
AKNC.JP
ITWHITEBOX.JP
IT-WHITEBOX.JP
STRL-TRIAL.JP
ORCUSGATE.JP
TENKAME.JP
NHK-ASSIST.JP
NHK-NEWS.JP
MTSSG.JP
NHKWORLD-JAPAN.JP
RADIRER.JP
NHKID.JP
Japan Broadcasting Corporation.JP
IT White Box.JP
Ayaka Ikezawa.JP
Process finished with exit code 0
――If you go any further, I feel like it will be deleted like the person in the example, so after that, delusions and soliloquy. (Chat)
――How to use this is a weapon, just like how to use a kitchen knife, but it will be convenient if you use it as a tool. For example ...