|
368 | 368 |
|
369 | 369 | download = { |
370 | 370 | "extend": "amsterdam", |
371 | | - "name_servers": r"Name Server:\s*(.+)\r", |
| 371 | + "name_servers": r"Name Server:[ \t]+(\S+)", # fix needed after strip(\r) in _2_parse.py in version 0.19 |
372 | 372 | "status": r"Domain Status:\s*([a-zA-z]+)", |
373 | 373 | } |
374 | 374 |
|
|
957 | 957 | "creation_date": r"Creation Date:\s?(.+)", |
958 | 958 | "expiration_date": r"Expiration Date:\s?(.+)", |
959 | 959 | "updated_date": r"Modified Date:\s?(.+)", |
960 | | - "name_servers": r"Name Servers:\r\n(?:\s*(\S+)[ \t\r]*\n)(?:\s*(\S+)[ \t\r]*\n)?(?:\s*(\S+)[ \t\r]*\n)?", |
961 | | - "status": r"Domain Status:\s*(.*)\r\n", |
| 960 | + |
| 961 | + # fix needed after strip(\r) in _2_parse.py in version 0.19 |
| 962 | + # "name_servers": r"Name Servers:\r\n(?:\s*(\S+)[ \t\r]*\n)(?:\s*(\S+)[ \t\r]*\n)?(?:\s*(\S+)[ \t\r]*\n)?", |
| 963 | + "name_servers": r"Name Servers:(?:\s+(\S+))(?:\s+(\S+))?(?:\s+([\.\w]+)\s+)?", |
| 964 | + # this seems ok for 2 and 3 ns and does not catch the dnssec: line |
| 965 | + |
| 966 | + "status": r"Domain Status:\s*(.*)\r?\n", |
962 | 967 | # "emails": r"(\S+@\S+)", |
963 | 968 | "emails": r"[\w\.-]+@[\w\.-]+\.[\w]{2,4}", |
964 | 969 | } |
|
970 | 975 | "creation_date": r"Created:\s?(.+)", |
971 | 976 | "expiration_date": r"Valid Until:\s?(.+)", |
972 | 977 | "updated_date": r"Updated:\s?(.+)", |
973 | | - "name_servers": r"Nameserver:\s*(.+)\r", |
| 978 | + "name_servers": r"Nameserver:\s*(\S+)", # fix needed after strip(\r) in _2_parse.py in version 0.19 |
974 | 979 | "registrant": r"Contact:\s?(.+)", |
975 | 980 | "registrant_country": r"Country Code:\s?(.+)\nRegistrar:", |
976 | 981 | } |
|
0 commit comments