Skip to content

Commit

Permalink
Use url variable instead of duplicate string
Browse files Browse the repository at this point in the history
  • Loading branch information
m-appel committed Dec 19, 2023
1 parent 260b159 commit 0150809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iyp/crawlers/iana/root_zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class Crawler(BaseCrawler):

def run(self):
r = requests.get('https://www.internic.net/domain/root.zone')
r = requests.get(self.url)
r.raise_for_status()

lines = [line.split() for line in r.text.splitlines()]
Expand Down

0 comments on commit 0150809

Please sign in to comment.