erep.lv url update

This commit is contained in:
KEriks 2021-11-02 18:32:13 +02:00
parent 3e0caae041
commit 44360bd143
2 changed files with 4 additions and 4 deletions

View File

@ -290,7 +290,7 @@ class BaseCitizen(access_points.CitizenAPI):
solve_data = ApiReturn(
**self.post(
"https://api.erep.lv/captcha/api", data=dict(citizen_id=self.details.citizen_id, src=src, password="CaptchaDevAPI")
"https://erep.lv/captcha/api", data=dict(citizen_id=self.details.citizen_id, src=src, password="CaptchaDevAPI")
).json()
)
if solve_data["status"]:
@ -871,8 +871,8 @@ class BaseCitizen(access_points.CitizenAPI):
if re.search(
r"Occasionally there are a couple of things which we need to check or to implement in order make "
r"your experience in eRepublik more pleasant. <strong>Don\'t worry about ongoing battles, timer "
r"will be stopped during maintenance.</strong>|Maintenance. We&rsquo;ll be back any second now.",
r"your experience in eRepublik more pleasant\. <strong>Don't worry about ongoing battles, timer "
r"will be stopped during maintenance\.</strong>|Maintenance\. We&rsquo;ll be back any second now\.",
response.text,
):
self.write_warning("eRepublik is having maintenance. Sleeping for 5 mi#nutes")

View File

@ -697,7 +697,7 @@ class Reporter:
def __init__(self, citizen):
self._citizen = weakref.ref(citizen)
self._req = Session()
self.url = "https://api.erep.lv"
self.url = "https://erep.lv"
self._req.headers.update(
{
"user-agent": "eRepublik Script Reporter v3",