-
Notifications
You must be signed in to change notification settings - Fork 3
GH-3: Write a script to check websites trilingual feature #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ChanukaUOJ
wants to merge
20
commits into
LDFLK:main
Choose a base branch
from
ChanukaUOJ:feat/trilingual-checker
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
c31c4dc
trilingual check has been added to the checks with basic helpers
ChanukaUOJ bea3eaf
aiohttp package removed
ChanukaUOJ 0f9bb79
playwrite case has been added to check the local storage
ChanukaUOJ a2ac500
security issue in playwright localstorage injection is fixed(BOT COMM…
ChanukaUOJ 24ec24b
deeplink checking has been added
ChanukaUOJ d1e796f
content checking function has been changed
ChanukaUOJ e0e694d
google translate language checking has been added
ChanukaUOJ 190d18a
minor fix
ChanukaUOJ 798d0eb
new extra columns added in the Check model
ChanukaUOJ 13c3ac7
trilingual tests have been added
ChanukaUOJ ab53e17
en language check
ChanukaUOJ e74390f
minor fix and the return status type changed to block letters
ChanukaUOJ fbe6341
local timeout error issue fixed (bot)
ChanukaUOJ 7515619
inefficient content tags traversal fixed (bot)
ChanukaUOJ 3260f35
chromium browser close(): resource leak issue fixed (bot)
ChanukaUOJ ee44cbb
double www. fallback issue fixed (bot)
ChanukaUOJ de98800
readme file updated based on the latest changes
ChanukaUOJ 70ac169
pytest-playwright pkg moved to dev
ChanukaUOJ ace8dfa
function docstrings update
ChanukaUOJ 42d5285
final output csv updated
ChanukaUOJ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,50 +1,50 @@ | ||
| Type,Institution Name,URL,ssl_status,ssl_error | ||
| Ministry,Ministry of Defence,defence.lk,valid, | ||
| Ministry,"Ministry of Finance, Planning and Economic Development",treasury.gov.lk,valid, | ||
| Ministry,Ministry of Digital Economy,midec.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known" | ||
| Ministry,"Ministry of Foreign Affairs, Foreign Employment and Tourism",mfa.gov.lk,valid, | ||
| Ministry,"Ministry of Education, Higher Education and Vocational Education",moe.gov.lk,valid, | ||
| Ministry,"Ministry of Agriculture, Livestock, Land and Irrigation",agrimin.gov.lk,valid, | ||
| Ministry,"Ministry of Transport, Highways and Urban Development",transport.gov.lk,valid, | ||
| Ministry,"Ministry of Public Administration, Provincial Councils and Local Government",pubad.gov.lk,valid, | ||
| Ministry,Ministry of Health and Mass Media,health.gov.lk,valid, | ||
| Ministry,Ministry of Justice and National Integration,moj.gov.lk,valid, | ||
| Ministry,Ministry of Public Security and Parliamentary Affairs,pubsec.gov.lk,valid, | ||
| Ministry,Ministry of Industry and Entrepreneurship Development,industry.gov.lk,valid, | ||
| Ministry,"Ministry of Trade, Commerce, Food Security and Cooperative Development",ment.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known" | ||
| Ministry,Ministry of Environment,env.gov.lk,valid, | ||
| Ministry,Ministry of Energy,energy.gov.lk,valid, | ||
| Ministry,"Ministry of Housing, Construction and Water Supply",housingmin.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known" | ||
| Ministry,Ministry of Labor,labourmin.gov.lk,valid, | ||
| Ministry,Ministry of Plantation and Community Infrastructure,plantationindustries.gov.lk,invalid,"Hostname mismatch, certificate is not valid for 'plantationindustries.gov.lk'." | ||
| Ministry,Ministry of Ports and Civil Aviation,portaviation.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known" | ||
| Ministry,"Ministry of Fisheries, Aquatic and Ocean Resources",fisheries.gov.lk,valid, | ||
| Ministry,Ministry of Women and Child Affairs,childwomen.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known" | ||
| Ministry,"Ministry of Rural Development, Social Security and Community Empowerment",socialservices.gov.lk,valid, | ||
| Ministry,"Ministry of Buddhasasana, Religious and Cultural Affairs",mbra.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known" | ||
| Ministry,Ministry of Youth Affairs and Sports,sportsmin.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known" | ||
| Ministry,Ministry of Science and Technology,most.gov.lk,valid, | ||
| Department,Department of Immigration and Emigration,immigration.gov.lk,valid, | ||
| Department,Department of Motor Traffic,dmt.gov.lk,valid, | ||
| Department,Department of Registration of Persons,drp.gov.lk,valid, | ||
| Department,Department of Registrar General,rgd.gov.lk,valid, | ||
| Department,Department of Inland Revenue,ird.gov.lk,valid, | ||
| Department,Sri Lanka Customs,customs.gov.lk,valid, | ||
| Department,Department of Pensions,pensions.gov.lk,valid, | ||
| Department,Department of Census and Statistics,statistics.gov.lk,unreachable,[Errno 54] Connection reset by peer | ||
| Department,Department of Government Information,dgi.gov.lk,valid, | ||
| Department,Department of Government Printing,documents.gov.lk,valid, | ||
| Department,Department of Excise,excise.gov.lk,valid, | ||
| Department,Department of National Budget,nationalbudget.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known" | ||
| Department,Department of Meteorology,meteo.gov.lk,valid, | ||
| Department,Department of Wildlife Conservation,dwc.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known" | ||
| Department,Department of Forest Conservation,forestdept.gov.lk,expired,unable to get local issuer certificate | ||
| Department,Department of National Zoological Gardens,colombozoo.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known" | ||
| Department,Department of Examinations,doenets.lk,valid, | ||
| Department,Department of Archaeology,archaeology.gov.lk,valid, | ||
| Department,Department of Samurdhi,samurdhi.gov.lk,valid, | ||
| Department,LSF,opensource.lk,invalid,"Hostname mismatch, certificate is not valid for 'opensource.lk'." | ||
| Expired,Expired SSL,expired.badssl.com,unreachable,[Errno 54] Connection reset by peer | ||
| Self-Signed,Self-Signed SSL,self-signed.badssl.com,invalid,self-signed certificate | ||
| Wrong Host,Wrong Host SSL,wrong.host.badssl.com,invalid,"Hostname mismatch, certificate is not valid for 'wrong.host.badssl.com'." | ||
| Never SSL,Never SSL,neverssl.com,valid, | ||
| Type,Institution Name,URL,ssl_status,ssl_error,trilingual_status,trilingual_error,trilingual_details,trilingual_deeplink | ||
| Ministry,Ministry of Defence,defence.lk,valid,,TRILINGUAL,,URL_LOCALIZATION, | ||
| Ministry,"Ministry of Finance, Planning and Economic Development",treasury.gov.lk,valid,,TRILINGUAL,,URL_LOCALIZATION, | ||
| Ministry,Ministry of Digital Economy,midec.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known",UNREACHABLE,Can't Access,, | ||
| Ministry,"Ministry of Foreign Affairs, Foreign Employment and Tourism",mfa.gov.lk,valid,,TRILINGUAL,,DEEPLINK_CRAWL: UNICODE_CONTENT,https://www.mfa.gov.lk/en | ||
| Ministry,"Ministry of Education, Higher Education and Vocational Education",moe.gov.lk,valid,,TRILINGUAL,,HTML_ATTRIBUTE, | ||
| Ministry,"Ministry of Agriculture, Livestock, Land and Irrigation",agrimin.gov.lk,valid,,NON_TRILINGUAL,"missing languages: si, ta",, | ||
| Ministry,"Ministry of Transport, Highways and Urban Development",transport.gov.lk,valid,,TRILINGUAL,,URL_LOCALIZATION, | ||
| Ministry,"Ministry of Public Administration, Provincial Councils and Local Government",pubad.gov.lk,valid,,TRILINGUAL,,URL_LOCALIZATION, | ||
| Ministry,Ministry of Health and Mass Media,health.gov.lk,valid,,TRILINGUAL,,"DEEPLINK_CRAWL: HTML_ATTRIBUTE, URL_LOCALIZATION",https://www.health.gov.lk/home/ | ||
| Ministry,Ministry of Justice and National Integration,moj.gov.lk,valid,,TRILINGUAL,,"HTML_ATTRIBUTE, URL_LOCALIZATION", | ||
| Ministry,Ministry of Public Security and Parliamentary Affairs,pubsec.gov.lk,valid,,TRILINGUAL,,"HTML_ATTRIBUTE, URL_LOCALIZATION", | ||
| Ministry,Ministry of Industry and Entrepreneurship Development,industry.gov.lk,valid,,TRILINGUAL,,"URL_LOCALIZATION, UNICODE_CONTENT", | ||
| Ministry,"Ministry of Trade, Commerce, Food Security and Cooperative Development",ment.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known",UNREACHABLE,Can't Access,, | ||
| Ministry,Ministry of Environment,env.gov.lk,valid,,TRILINGUAL,,URL_LOCALIZATION, | ||
| Ministry,Ministry of Energy,energy.gov.lk,valid,,TRILINGUAL,,URL_LOCALIZATION, | ||
| Ministry,"Ministry of Housing, Construction and Water Supply",housingmin.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known",UNREACHABLE,Can't Access,, | ||
| Ministry,Ministry of Labor,labourmin.gov.lk,valid,,NON_TRILINGUAL,"missing languages: si, ta",, | ||
| Ministry,Ministry of Plantation and Community Infrastructure,plantationindustries.gov.lk,invalid,"Hostname mismatch, certificate is not valid for 'plantationindustries.gov.lk'.",TRILINGUAL,,GOOGLE_TRANSLATE_API, | ||
| Ministry,Ministry of Ports and Civil Aviation,portaviation.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known",UNREACHABLE,Can't Access,, | ||
| Ministry,"Ministry of Fisheries, Aquatic and Ocean Resources",fisheries.gov.lk,valid,,TRILINGUAL,,HTML_ATTRIBUTE, | ||
| Ministry,Ministry of Women and Child Affairs,childwomen.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known",UNREACHABLE,Can't Access,, | ||
| Ministry,"Ministry of Rural Development, Social Security and Community Empowerment",socialservices.gov.lk,valid,,TRILINGUAL,,URL_LOCALIZATION, | ||
| Ministry,"Ministry of Buddhasasana, Religious and Cultural Affairs",mbra.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known",UNREACHABLE,Can't Access,, | ||
| Ministry,Ministry of Youth Affairs and Sports,sportsmin.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known",UNREACHABLE,Can't Access,, | ||
| Ministry,Ministry of Science and Technology,most.gov.lk,valid,,TRILINGUAL,,URL_LOCALIZATION, | ||
| Department,Department of Immigration and Emigration,immigration.gov.lk,valid,,TRILINGUAL,,UNICODE_CONTENT, | ||
| Department,Department of Motor Traffic,dmt.gov.lk,valid,,TRILINGUAL,,"HTML_ATTRIBUTE, URL_LOCALIZATION", | ||
| Department,Department of Registration of Persons,drp.gov.lk,valid,,TRILINGUAL,,VERIFIED_SWITCHER_CLICK, | ||
| Department,Department of Registrar General,rgd.gov.lk,valid,,TRILINGUAL,,"URL_LOCALIZATION, UNICODE_CONTENT", | ||
| Department,Department of Inland Revenue,ird.gov.lk,valid,,UNREACHABLE,Can't Access,, | ||
| Department,Sri Lanka Customs,customs.gov.lk,valid,,TRILINGUAL,,GOOGLE_TRANSLATE_API, | ||
| Department,Department of Pensions,pensions.gov.lk,valid,,TRILINGUAL,,"HTML_ATTRIBUTE, URL_LOCALIZATION", | ||
| Department,Department of Census and Statistics,statistics.gov.lk,unreachable,[Errno 54] Connection reset by peer,TRILINGUAL,,VERIFIED_SWITCHER_CLICK, | ||
| Department,Department of Government Information,dgi.gov.lk,valid,,TRILINGUAL,,VERIFIED_SWITCHER_CLICK, | ||
| Department,Department of Government Printing,documents.gov.lk,valid,,NON_TRILINGUAL,"missing languages: si, ta",, | ||
| Department,Department of Excise,excise.gov.lk,valid,,TRILINGUAL,,"HTML_ATTRIBUTE, URL_LOCALIZATION", | ||
| Department,Department of National Budget,nationalbudget.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known",UNREACHABLE,Can't Access,, | ||
| Department,Department of Meteorology,meteo.gov.lk,valid,,TRILINGUAL,,UNICODE_CONTENT, | ||
| Department,Department of Wildlife Conservation,dwc.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known",TRILINGUAL,,DEEPLINK_CRAWL: UNICODE_CONTENT,"https://www.dwc.gov.lk/?page_id=203, https://www.dwc.gov.lk/?page_id=257, https://www.dwc.gov.lk/?p=914, https://www.dwc.gov.lk/?paged=2" | ||
| Department,Department of Forest Conservation,forestdept.gov.lk,expired,unable to get local issuer certificate,TRILINGUAL,,"HTML_ATTRIBUTE, URL_LOCALIZATION", | ||
| Department,Department of National Zoological Gardens,colombozoo.gov.lk,unreachable,"[Errno 8] nodename nor servname provided, or not known",UNREACHABLE,Can't Access,, | ||
| Department,Department of Examinations,doenets.lk,valid,,TRILINGUAL,,BROWSER_STORAGE, | ||
| Department,Department of Archaeology,archaeology.gov.lk,valid,,TRILINGUAL,,GOOGLE_TRANSLATE_API, | ||
| Department,Department of Samurdhi,samurdhi.gov.lk,valid,,TRILINGUAL,,URL_LOCALIZATION, | ||
| Department,LSF,opensource.lk,valid,,NON_TRILINGUAL,"missing languages: si, ta",, | ||
| Expired,Expired SSL,expired.badssl.com,expired,certificate has expired,TIMEOUT,"Some checks timed out. Potentially missing: si, ta",, | ||
| Self-Signed,Self-Signed SSL,self-signed.badssl.com,invalid,self-signed certificate,UNREACHABLE,Can't Access,, | ||
| Wrong Host,Wrong Host SSL,wrong.host.badssl.com,unreachable,[Errno 54] Connection reset by peer,TIMEOUT,"Some checks timed out. Potentially missing: si, ta",, | ||
| Never SSL,Never SSL,neverssl.com,valid,,NON_TRILINGUAL,"missing languages: si, ta",, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.