Implementing the codes to the new site
Closed this issue · 3 comments
EmineSener commented
Implementing the codes to the new site
github-actions commented
Very good first step. Thanks. How about solving this now?
EmineSener commented
fatiiates commented
Hey @EmineSener, glad to see you here!
As you know we have a scraping method that left from older codebase. And we need to update this method because our website is totally renewed and moved to another domain.
Resources
The method(s)
Method is in this file Replica bot
# sends new announcements to the telegram chats: developed for the announcing to students/teachers/everybody about news
def send_announcements_to_chats(self, context):
EDIT: Forget the aboved method and the file, actual methods is in this file
# gets announcement id: developed for getting last announcement and serializing it
# if announcement = 0 then gets the last announcement id
# if announcement = 1 then gets the last-1 announcement id
@staticmethod
def get_announcement_id(announcement: int) -> int:
.
.
.
# gets last announcement's content: developed for sent the last announcement as a content
@staticmethod
def get_announcement_content_by_id(announcement: int) -> str:
The website
Here is the new domain: http://mdbf.btu.edu.tr/bilgisayar
What to do?
So, what should you do to fix this issue?
- Please fork the repository.
- Update the scraping method completely
- When you have done, create a PR
If you have questions, don't be shy.