Periodically run the crawler.py
to check weather there is update in the ntce website.
If the "考试动态" is updated, a notification e-mail will be sent to your mail box.
-
Install Python 3 + .
-
Install requests,BeautifulSoup4.
-
Download the code files. Make sure the
crawler.py
,receivers.json
,ReportIDIssueTime.json
are in the same folder.. -
Add a periodical tast to run the
crawler.py
. -
Add your e-mail address in the
receivers.json
and it will work, hopefully.
|-- crawler.py
|-- receivers.json
|-- ReportIDIssueTime.json
There are 2 ways to do it:
-
Add your e-mail address in the
receivers.json
and open a Pull Request. -
Contact me to inform your e-mail address.
The program should work well theoretically. But don't rely on it 100 %. You should also check the exam news manually.
If you miss a exam or a piece of news, you could blame the program as well as me, but I would not take the responsibility for it.
-
I have tried to use pyinstaller to pack a
.exe
file. Unfortunately it doesn't work. -
I have also tried to use scrapy. The program work well in my PC and on the zyte.com . Unfortunately, it costs quite a lot to add a periodical task on the zyte.com.
If there are free ways to deploy this crawler, I will appreciate it if you could tell me. (This crawler only generate tiny flow and to be honest, I sincerely don't want to pay for it as it's not necessary.)
That's me who missed the exam in March, 20221!
Footnotes
-
You could find my complaint here: 大头虾竟然没报名教资考试!!! ↩