Compare commits
No commits in common. "9f3abd864163a658feda8a2201410858e7f7afa0" and "aa8fa31195d7ad7886b522b3ccbf258de38219db" have entirely different histories.
9f3abd8641
...
aa8fa31195
11
README.md
11
README.md
|
@ -3,19 +3,10 @@
|
||||||
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
|
||||||
|
|
||||||
## Scripts
|
Inclusion of a site in this model is not an endorsement of the site.
|
||||||
|
|
||||||
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
Executable file → Normal file
18
compile.py
Executable file → Normal file
|
@ -1,21 +1,3 @@
|
||||||
#!/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
Executable file → Normal file
18
download.py
Executable file → Normal file
|
@ -1,21 +1,3 @@
|
||||||
#!/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
Executable file → Normal file
18
export.py
Executable file → Normal file
|
@ -1,21 +1,3 @@
|
||||||
#!/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
Executable file → Normal file
18
stats.py
Executable file → Normal file
|
@ -1,21 +1,3 @@
|
||||||
#!/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