Compare commits
3 Commits
aa8fa31195
...
9f3abd8641
Author | SHA1 | Date | |
---|---|---|---|
9f3abd8641 | |||
17bb8a4f3f | |||
f0b93cd2f6 |
11
README.md
11
README.md
|
@ -3,10 +3,19 @@
|
||||||
A [GPTC](https://git.kj7rrv.com/kj7rrv/gptc) model to classify American news as
|
A [GPTC](https://git.kj7rrv.com/kj7rrv/gptc) model to classify American news as
|
||||||
right- or left-leaning
|
right- or left-leaning
|
||||||
|
|
||||||
Inclusion of a site in this model is not an endorsement of the site.
|
## Scripts
|
||||||
|
|
||||||
|
No scripts take any arguments.
|
||||||
|
|
||||||
|
* `./download.py`: download new articles and add them to the database
|
||||||
|
* `./compile.py`: compile GPTC model
|
||||||
|
* `./export.py`: create `build/` directory with files for release
|
||||||
|
* `./stats.py`: print statistics on article and source counts
|
||||||
|
|
||||||
## Sources
|
## Sources
|
||||||
|
|
||||||
|
Inclusion of a site in this model is not an endorsement of the site.
|
||||||
|
|
||||||
### Left
|
### Left
|
||||||
|
|
||||||
* ABC News
|
* ABC News
|
||||||
|
|
18
compile.py
Normal file → Executable file
18
compile.py
Normal file → Executable file
|
@ -1,3 +1,21 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
# Copyright (c) 2022 Samuel L Sloniker
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify it under
|
||||||
|
# the terms of the GNU General Public License as published by the Free Software
|
||||||
|
# Foundation, either version 3 of the License, or (at your option) any later
|
||||||
|
# version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
# details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License along with
|
||||||
|
# this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import gptc
|
import gptc
|
||||||
|
|
||||||
|
|
18
download.py
Normal file → Executable file
18
download.py
Normal file → Executable file
|
@ -1,3 +1,21 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
# Copyright (c) 2022 Samuel L Sloniker
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify it under
|
||||||
|
# the terms of the GNU General Public License as published by the Free Software
|
||||||
|
# Foundation, either version 3 of the License, or (at your option) any later
|
||||||
|
# version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
# details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License along with
|
||||||
|
# this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import feedparser
|
import feedparser
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import goose3
|
import goose3
|
||||||
|
|
18
export.py
Normal file → Executable file
18
export.py
Normal file → Executable file
|
@ -1,3 +1,21 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
# Copyright (c) 2022 Samuel L Sloniker
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify it under
|
||||||
|
# the terms of the GNU General Public License as published by the Free Software
|
||||||
|
# Foundation, either version 3 of the License, or (at your option) any later
|
||||||
|
# version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
# details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License along with
|
||||||
|
# this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import sqlite3
|
import sqlite3
|
||||||
|
|
18
stats.py
Normal file → Executable file
18
stats.py
Normal file → Executable file
|
@ -1,3 +1,21 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
# Copyright (c) 2022 Samuel L Sloniker
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify it under
|
||||||
|
# the terms of the GNU General Public License as published by the Free Software
|
||||||
|
# Foundation, either version 3 of the License, or (at your option) any later
|
||||||
|
# version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
# details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License along with
|
||||||
|
# this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import tomli
|
import tomli
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user