Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
university_analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Robin Stecher
university_analysis
Commits
5dd73e87
Commit
5dd73e87
authored
Mar 30, 2024
by
Robin Stecher
Browse files
Options
Downloads
Patches
Plain Diff
Added README.md
parent
6eb79189
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.DS_Store
+0
-0
0 additions, 0 deletions
.DS_Store
README.md
+21
-0
21 additions, 0 deletions
README.md
main.py
+10
-3
10 additions, 3 deletions
main.py
with
31 additions
and
3 deletions
.DS_Store
0 → 100644
+
0
−
0
View file @
5dd73e87
File added
This diff is collapsed.
Click to expand it.
README.md
0 → 100644
+
21
−
0
View file @
5dd73e87
# University homepage analysis
## About
This is a small research project for a
submission in my second univsersity subject.
It is a script which should check common
university websites in germany for SSL-Encryption.
You can execute the python script by installing
python and running
```
python3 main.py
```
## Transparancy note
The list of university homepage URLs is generated
by ChatGPT (GPT-3 model).
\ No newline at end of file
This diff is collapsed.
Click to expand it.
main.py
+
10
−
3
View file @
5dd73e87
...
...
@@ -44,6 +44,10 @@ def get_only_http_domains(url_list: [str]) -> [str]:
return
list
(
filter
(
filter_http_urls
,
url_list
))
def
count_urls_in_list
(
url_list
:
[
str
])
->
int
:
return
len
(
url_list
)
if
__name__
==
'
__main__
'
:
# print('Hello World!')
# check_url_list_for_ssl('assets/university_main_pages.json')
...
...
@@ -52,6 +56,9 @@ if __name__ == '__main__':
university_list
=
get_url_list
(
'
assets/university_main_pages.json
'
)
# university_list = ['https://stecher42.de', 'https://go.stecher42.de']
result_list
=
get_all_urls_from_websites
(
university_list
)
print
(
result_list
)
print
(
get_only_http_domains
(
result_list
))
# result_list = get_all_urls_from_websites(university_list)
# print(result_list)
# print(get_only_http_domains(result_list))
print
(
f
'
Count of universities:
{
count_urls_in_list
(
university_list
)
}
'
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment