synomosia 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- synomosia-1.0.0/.github/workflows/ci.yml +90 -0
- synomosia-1.0.0/.gitignore +17 -0
- synomosia-1.0.0/Cargo.lock +133 -0
- synomosia-1.0.0/Cargo.toml +12 -0
- synomosia-1.0.0/LICENSE +21 -0
- synomosia-1.0.0/PKG-INFO +126 -0
- synomosia-1.0.0/README.md +90 -0
- synomosia-1.0.0/pyproject.toml +60 -0
- synomosia-1.0.0/scripts/bake.py +266 -0
- synomosia-1.0.0/scripts/scrape.py +197 -0
- synomosia-1.0.0/src/lib.rs +44 -0
- synomosia-1.0.0/src/synomosia/__init__.py +154 -0
- synomosia-1.0.0/src/synomosia/_core.pyi +2 -0
- synomosia-1.0.0/src/synomosia/_data/.gitkeep +0 -0
- synomosia-1.0.0/src/synomosia/_llm_categorizer.py +78 -0
- synomosia-1.0.0/src/synomosia/_query.py +88 -0
- synomosia-1.0.0/src/synomosia/_scraper.py +428 -0
- synomosia-1.0.0/src/synomosia/_store.py +146 -0
- synomosia-1.0.0/tests/__init__.py +0 -0
- synomosia-1.0.0/tests/conftest.py +169 -0
- synomosia-1.0.0/tests/test_llm_categorizer.py +209 -0
- synomosia-1.0.0/tests/test_query.py +360 -0
- synomosia-1.0.0/tests/test_scraper.py +258 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
tags: ['v*']
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: [main]
|
|
9
|
+
|
|
10
|
+
env:
|
|
11
|
+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
- uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: '3.11'
|
|
21
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
22
|
+
- name: Build wheel
|
|
23
|
+
run: |
|
|
24
|
+
pip install maturin
|
|
25
|
+
maturin build --out dist
|
|
26
|
+
pip install --find-links dist synomosia
|
|
27
|
+
- name: Run tests
|
|
28
|
+
run: pip install pytest && pytest tests/ -q
|
|
29
|
+
|
|
30
|
+
build-wheels:
|
|
31
|
+
needs: test
|
|
32
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
33
|
+
strategy:
|
|
34
|
+
matrix:
|
|
35
|
+
include:
|
|
36
|
+
- os: ubuntu-latest
|
|
37
|
+
target: x86_64
|
|
38
|
+
- os: windows-latest
|
|
39
|
+
target: x86_64
|
|
40
|
+
- os: macos-latest
|
|
41
|
+
target: x86_64
|
|
42
|
+
- os: macos-latest
|
|
43
|
+
target: aarch64
|
|
44
|
+
runs-on: ${{ matrix.os }}
|
|
45
|
+
steps:
|
|
46
|
+
- uses: actions/checkout@v4
|
|
47
|
+
- uses: PyO3/maturin-action@v1
|
|
48
|
+
with:
|
|
49
|
+
target: ${{ matrix.target }}
|
|
50
|
+
args: --release --out dist --find-interpreter
|
|
51
|
+
sccache: 'true'
|
|
52
|
+
manylinux: auto
|
|
53
|
+
- uses: actions/upload-artifact@v4
|
|
54
|
+
with:
|
|
55
|
+
name: wheels-${{ matrix.os }}-${{ matrix.target }}
|
|
56
|
+
path: dist/
|
|
57
|
+
|
|
58
|
+
sdist:
|
|
59
|
+
needs: test
|
|
60
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
61
|
+
runs-on: ubuntu-latest
|
|
62
|
+
steps:
|
|
63
|
+
- uses: actions/checkout@v4
|
|
64
|
+
- uses: PyO3/maturin-action@v1
|
|
65
|
+
with:
|
|
66
|
+
command: sdist
|
|
67
|
+
args: --out dist
|
|
68
|
+
- uses: actions/upload-artifact@v4
|
|
69
|
+
with:
|
|
70
|
+
name: sdist
|
|
71
|
+
path: dist/
|
|
72
|
+
|
|
73
|
+
publish:
|
|
74
|
+
needs: [build-wheels, sdist]
|
|
75
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
76
|
+
runs-on: ubuntu-latest
|
|
77
|
+
environment: pypi
|
|
78
|
+
permissions:
|
|
79
|
+
id-token: write
|
|
80
|
+
steps:
|
|
81
|
+
- uses: actions/download-artifact@v4
|
|
82
|
+
with:
|
|
83
|
+
pattern: wheels-*
|
|
84
|
+
merge-multiple: true
|
|
85
|
+
path: dist/
|
|
86
|
+
- uses: actions/download-artifact@v4
|
|
87
|
+
with:
|
|
88
|
+
name: sdist
|
|
89
|
+
path: dist/
|
|
90
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
*.egg-info/
|
|
4
|
+
build/
|
|
5
|
+
dist/
|
|
6
|
+
target/
|
|
7
|
+
Cargo.lock
|
|
8
|
+
.venv/
|
|
9
|
+
venv/
|
|
10
|
+
|
|
11
|
+
# Firebase credentials — NEVER commit these
|
|
12
|
+
*firebase-adminsdk*.json
|
|
13
|
+
*service-account*.json
|
|
14
|
+
*serviceAccount*.json
|
|
15
|
+
serviceAccountKey.json
|
|
16
|
+
credentials*.json
|
|
17
|
+
*-credentials.json
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "heck"
|
|
7
|
+
version = "0.5.0"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "libc"
|
|
13
|
+
version = "0.2.186"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "once_cell"
|
|
19
|
+
version = "1.21.4"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "portable-atomic"
|
|
25
|
+
version = "1.13.1"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "proc-macro2"
|
|
31
|
+
version = "1.0.106"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
34
|
+
dependencies = [
|
|
35
|
+
"unicode-ident",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[[package]]
|
|
39
|
+
name = "pyo3"
|
|
40
|
+
version = "0.28.3"
|
|
41
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
42
|
+
checksum = "91fd8e38a3b50ed1167fb981cd6fd60147e091784c427b8f7183a7ee32c31c12"
|
|
43
|
+
dependencies = [
|
|
44
|
+
"libc",
|
|
45
|
+
"once_cell",
|
|
46
|
+
"portable-atomic",
|
|
47
|
+
"pyo3-build-config",
|
|
48
|
+
"pyo3-ffi",
|
|
49
|
+
"pyo3-macros",
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
[[package]]
|
|
53
|
+
name = "pyo3-build-config"
|
|
54
|
+
version = "0.28.3"
|
|
55
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
56
|
+
checksum = "e368e7ddfdeb98c9bca7f8383be1648fd84ab466bf2bc015e94008db6d35611e"
|
|
57
|
+
dependencies = [
|
|
58
|
+
"target-lexicon",
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
[[package]]
|
|
62
|
+
name = "pyo3-ffi"
|
|
63
|
+
version = "0.28.3"
|
|
64
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
65
|
+
checksum = "7f29e10af80b1f7ccaf7f69eace800a03ecd13e883acfacc1e5d0988605f651e"
|
|
66
|
+
dependencies = [
|
|
67
|
+
"libc",
|
|
68
|
+
"pyo3-build-config",
|
|
69
|
+
]
|
|
70
|
+
|
|
71
|
+
[[package]]
|
|
72
|
+
name = "pyo3-macros"
|
|
73
|
+
version = "0.28.3"
|
|
74
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
75
|
+
checksum = "df6e520eff47c45997d2fc7dd8214b25dd1310918bbb2642156ef66a67f29813"
|
|
76
|
+
dependencies = [
|
|
77
|
+
"proc-macro2",
|
|
78
|
+
"pyo3-macros-backend",
|
|
79
|
+
"quote",
|
|
80
|
+
"syn",
|
|
81
|
+
]
|
|
82
|
+
|
|
83
|
+
[[package]]
|
|
84
|
+
name = "pyo3-macros-backend"
|
|
85
|
+
version = "0.28.3"
|
|
86
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
87
|
+
checksum = "c4cdc218d835738f81c2338f822078af45b4afdf8b2e33cbb5916f108b813acb"
|
|
88
|
+
dependencies = [
|
|
89
|
+
"heck",
|
|
90
|
+
"proc-macro2",
|
|
91
|
+
"pyo3-build-config",
|
|
92
|
+
"quote",
|
|
93
|
+
"syn",
|
|
94
|
+
]
|
|
95
|
+
|
|
96
|
+
[[package]]
|
|
97
|
+
name = "quote"
|
|
98
|
+
version = "1.0.45"
|
|
99
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
100
|
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
|
101
|
+
dependencies = [
|
|
102
|
+
"proc-macro2",
|
|
103
|
+
]
|
|
104
|
+
|
|
105
|
+
[[package]]
|
|
106
|
+
name = "syn"
|
|
107
|
+
version = "2.0.117"
|
|
108
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
109
|
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
|
110
|
+
dependencies = [
|
|
111
|
+
"proc-macro2",
|
|
112
|
+
"quote",
|
|
113
|
+
"unicode-ident",
|
|
114
|
+
]
|
|
115
|
+
|
|
116
|
+
[[package]]
|
|
117
|
+
name = "synomosia-core"
|
|
118
|
+
version = "1.0.0"
|
|
119
|
+
dependencies = [
|
|
120
|
+
"pyo3",
|
|
121
|
+
]
|
|
122
|
+
|
|
123
|
+
[[package]]
|
|
124
|
+
name = "target-lexicon"
|
|
125
|
+
version = "0.13.5"
|
|
126
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
127
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
128
|
+
|
|
129
|
+
[[package]]
|
|
130
|
+
name = "unicode-ident"
|
|
131
|
+
version = "1.0.24"
|
|
132
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
133
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
synomosia-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Andrew Watts
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
synomosia-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: synomosia
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Classifier: Development Status :: 4 - Beta
|
|
5
|
+
Classifier: Intended Audience :: Developers
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Topic :: Database
|
|
14
|
+
Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
|
|
15
|
+
Requires-Dist: eyecore[feed]>=1.0.0
|
|
16
|
+
Requires-Dist: requests>=2.28 ; extra == 'bake'
|
|
17
|
+
Requires-Dist: feedparser>=6.0 ; extra == 'scrape'
|
|
18
|
+
Requires-Dist: requests>=2.28 ; extra == 'scrape'
|
|
19
|
+
Requires-Dist: beautifulsoup4>=4.12 ; extra == 'scrape'
|
|
20
|
+
Requires-Dist: praw>=7.0 ; extra == 'scrape'
|
|
21
|
+
Requires-Dist: pytest>=7.0 ; extra == 'test'
|
|
22
|
+
Requires-Dist: pytest-cov>=4.0 ; extra == 'test'
|
|
23
|
+
Provides-Extra: bake
|
|
24
|
+
Provides-Extra: scrape
|
|
25
|
+
Provides-Extra: test
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Summary: Conspiracy theories, hidden histories, and suppressed knowledge
|
|
28
|
+
Keywords: conspiracy,history,secret societies,hidden knowledge,alternative history
|
|
29
|
+
Author-email: Andrew Watts <andrewkwatts@gmail.com>
|
|
30
|
+
Requires-Python: >=3.10
|
|
31
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
32
|
+
Project-URL: Homepage, https://github.com/andrewkwatts-maker/Synomosia
|
|
33
|
+
Project-URL: Issues, https://github.com/andrewkwatts-maker/Synomosia/issues
|
|
34
|
+
Project-URL: Repository, https://github.com/andrewkwatts-maker/Synomosia
|
|
35
|
+
|
|
36
|
+
# synomosia
|
|
37
|
+
|
|
38
|
+
Conspiracy theories, hidden histories, and suppressed knowledge — a curated encyclopedia and live scraper for Python.
|
|
39
|
+
|
|
40
|
+
## Features
|
|
41
|
+
|
|
42
|
+
- Curated database of theories, figures, organizations, events, and documents
|
|
43
|
+
- Full-text search with FTS5 fallback to LIKE
|
|
44
|
+
- Topic graph linking related theories and entities
|
|
45
|
+
- Live scraper for Reddit, 4chan boards, and RSS feeds (optional)
|
|
46
|
+
- LLM-powered categorization into 16 conspiracy taxonomy categories (optional)
|
|
47
|
+
- Daily rotating local databases with compression
|
|
48
|
+
- On-demand corpus checkout (downloaded once, cached locally)
|
|
49
|
+
|
|
50
|
+
## Installation
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
pip install synomosia
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
With scraping support:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
pip install "synomosia[scrape]" # adds feedparser, requests, beautifulsoup4, praw
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Quick start
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
import synomosia
|
|
66
|
+
|
|
67
|
+
# Curated database queries
|
|
68
|
+
theory = synomosia.GetTheory("Illuminati")
|
|
69
|
+
figure = synomosia.GetFigure("John F. Kennedy")
|
|
70
|
+
org = synomosia.GetOrganization("Bilderberg Group")
|
|
71
|
+
|
|
72
|
+
# Full-text search
|
|
73
|
+
results = synomosia.Search("shadow government")
|
|
74
|
+
orgs = synomosia.ByCategory("secret-society")
|
|
75
|
+
all_ = synomosia.GetAll("theory")
|
|
76
|
+
|
|
77
|
+
# Topic graph
|
|
78
|
+
related = synomosia.GetRelated("New World Order")
|
|
79
|
+
topics = synomosia.GetTopics("government")
|
|
80
|
+
tree = synomosia.GetTopicTree("deep-state")
|
|
81
|
+
|
|
82
|
+
# Live scraper — configure sources
|
|
83
|
+
synomosia.AddFeed("https://conspiracyarchive.com/feed/")
|
|
84
|
+
synomosia.AddSubreddit("conspiracy") # requires REDDIT_CLIENT_ID env var
|
|
85
|
+
sources = synomosia.ListSources()
|
|
86
|
+
|
|
87
|
+
# Scrape and categorize
|
|
88
|
+
synomosia.Scrape() # fetch from all sources
|
|
89
|
+
synomosia.Categorize(verbose=True) # LLM categorization (requires LLM backend)
|
|
90
|
+
report = synomosia.DailyReport() # generate today's summary report
|
|
91
|
+
|
|
92
|
+
# Corpus
|
|
93
|
+
synomosia.FetchCorpus("gutenberg-1984")
|
|
94
|
+
hits = synomosia.SearchCorpus("surveillance")
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## LLM-powered categorization
|
|
98
|
+
|
|
99
|
+
When an LLM backend is available, articles are classified into 16 categories:
|
|
100
|
+
|
|
101
|
+
`government-surveillance`, `secret-societies`, `false-flag`, `extraterrestrial`, `financial-manipulation`, `medical-coverup`, `media-control`, `religion-occult`, `geopolitical`, `technology-control`, `weather-manipulation`, `historical-revision`, `assassination`, `mind-control`, `new-world-order`, `other`
|
|
102
|
+
|
|
103
|
+
Set `LLM_BACKEND`, `LLM_MODEL`, etc. — see [eyecore](https://github.com/andrewkwatts-maker/EyeCore#llm-configuration) for configuration.
|
|
104
|
+
|
|
105
|
+
## Reddit scraping setup
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
export REDDIT_CLIENT_ID=your_client_id
|
|
109
|
+
export REDDIT_CLIENT_SECRET=your_client_secret
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Register a read-only script app at [reddit.com/prefs/apps](https://www.reddit.com/prefs/apps).
|
|
113
|
+
|
|
114
|
+
## Part of the Eyes of Azrael suite
|
|
115
|
+
|
|
116
|
+
| Package | Description |
|
|
117
|
+
|---|---|
|
|
118
|
+
| [`eyecore`](https://github.com/andrewkwatts-maker/EyeCore) | Shared foundation (DB, graph, corpus, LLM) |
|
|
119
|
+
| [`azrael`](https://github.com/andrewkwatts-maker/Azrael) | Mythology encyclopedia |
|
|
120
|
+
| [`synomosia`](https://github.com/andrewkwatts-maker/Synomosia) | Conspiracy theories and hidden histories |
|
|
121
|
+
| [`mnema`](https://github.com/andrewkwatts-maker/Mnema) | Historical figures and events |
|
|
122
|
+
|
|
123
|
+
## License
|
|
124
|
+
|
|
125
|
+
MIT — see [LICENSE](LICENSE)
|
|
126
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# synomosia
|
|
2
|
+
|
|
3
|
+
Conspiracy theories, hidden histories, and suppressed knowledge — a curated encyclopedia and live scraper for Python.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Curated database of theories, figures, organizations, events, and documents
|
|
8
|
+
- Full-text search with FTS5 fallback to LIKE
|
|
9
|
+
- Topic graph linking related theories and entities
|
|
10
|
+
- Live scraper for Reddit, 4chan boards, and RSS feeds (optional)
|
|
11
|
+
- LLM-powered categorization into 16 conspiracy taxonomy categories (optional)
|
|
12
|
+
- Daily rotating local databases with compression
|
|
13
|
+
- On-demand corpus checkout (downloaded once, cached locally)
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install synomosia
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
With scraping support:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install "synomosia[scrape]" # adds feedparser, requests, beautifulsoup4, praw
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Quick start
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
import synomosia
|
|
31
|
+
|
|
32
|
+
# Curated database queries
|
|
33
|
+
theory = synomosia.GetTheory("Illuminati")
|
|
34
|
+
figure = synomosia.GetFigure("John F. Kennedy")
|
|
35
|
+
org = synomosia.GetOrganization("Bilderberg Group")
|
|
36
|
+
|
|
37
|
+
# Full-text search
|
|
38
|
+
results = synomosia.Search("shadow government")
|
|
39
|
+
orgs = synomosia.ByCategory("secret-society")
|
|
40
|
+
all_ = synomosia.GetAll("theory")
|
|
41
|
+
|
|
42
|
+
# Topic graph
|
|
43
|
+
related = synomosia.GetRelated("New World Order")
|
|
44
|
+
topics = synomosia.GetTopics("government")
|
|
45
|
+
tree = synomosia.GetTopicTree("deep-state")
|
|
46
|
+
|
|
47
|
+
# Live scraper — configure sources
|
|
48
|
+
synomosia.AddFeed("https://conspiracyarchive.com/feed/")
|
|
49
|
+
synomosia.AddSubreddit("conspiracy") # requires REDDIT_CLIENT_ID env var
|
|
50
|
+
sources = synomosia.ListSources()
|
|
51
|
+
|
|
52
|
+
# Scrape and categorize
|
|
53
|
+
synomosia.Scrape() # fetch from all sources
|
|
54
|
+
synomosia.Categorize(verbose=True) # LLM categorization (requires LLM backend)
|
|
55
|
+
report = synomosia.DailyReport() # generate today's summary report
|
|
56
|
+
|
|
57
|
+
# Corpus
|
|
58
|
+
synomosia.FetchCorpus("gutenberg-1984")
|
|
59
|
+
hits = synomosia.SearchCorpus("surveillance")
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## LLM-powered categorization
|
|
63
|
+
|
|
64
|
+
When an LLM backend is available, articles are classified into 16 categories:
|
|
65
|
+
|
|
66
|
+
`government-surveillance`, `secret-societies`, `false-flag`, `extraterrestrial`, `financial-manipulation`, `medical-coverup`, `media-control`, `religion-occult`, `geopolitical`, `technology-control`, `weather-manipulation`, `historical-revision`, `assassination`, `mind-control`, `new-world-order`, `other`
|
|
67
|
+
|
|
68
|
+
Set `LLM_BACKEND`, `LLM_MODEL`, etc. — see [eyecore](https://github.com/andrewkwatts-maker/EyeCore#llm-configuration) for configuration.
|
|
69
|
+
|
|
70
|
+
## Reddit scraping setup
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
export REDDIT_CLIENT_ID=your_client_id
|
|
74
|
+
export REDDIT_CLIENT_SECRET=your_client_secret
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Register a read-only script app at [reddit.com/prefs/apps](https://www.reddit.com/prefs/apps).
|
|
78
|
+
|
|
79
|
+
## Part of the Eyes of Azrael suite
|
|
80
|
+
|
|
81
|
+
| Package | Description |
|
|
82
|
+
|---|---|
|
|
83
|
+
| [`eyecore`](https://github.com/andrewkwatts-maker/EyeCore) | Shared foundation (DB, graph, corpus, LLM) |
|
|
84
|
+
| [`azrael`](https://github.com/andrewkwatts-maker/Azrael) | Mythology encyclopedia |
|
|
85
|
+
| [`synomosia`](https://github.com/andrewkwatts-maker/Synomosia) | Conspiracy theories and hidden histories |
|
|
86
|
+
| [`mnema`](https://github.com/andrewkwatts-maker/Mnema) | Historical figures and events |
|
|
87
|
+
|
|
88
|
+
## License
|
|
89
|
+
|
|
90
|
+
MIT — see [LICENSE](LICENSE)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["maturin>=1.4,<2.0"]
|
|
3
|
+
build-backend = "maturin"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "synomosia"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "Conspiracy theories, hidden histories, and suppressed knowledge"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = {file = "LICENSE"}
|
|
12
|
+
authors = [
|
|
13
|
+
{name = "Andrew Watts", email = "andrewkwatts@gmail.com"},
|
|
14
|
+
]
|
|
15
|
+
keywords = ["conspiracy", "history", "secret societies", "hidden knowledge", "alternative history"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 4 - Beta",
|
|
18
|
+
"Intended Audience :: Developers",
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"Programming Language :: Python :: 3.10",
|
|
21
|
+
"Programming Language :: Python :: 3.11",
|
|
22
|
+
"Programming Language :: Python :: 3.12",
|
|
23
|
+
"Programming Language :: Python :: 3.13",
|
|
24
|
+
"License :: OSI Approved :: MIT License",
|
|
25
|
+
"Operating System :: OS Independent",
|
|
26
|
+
"Topic :: Database",
|
|
27
|
+
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
dependencies = [
|
|
31
|
+
"eyecore[feed]>=1.0.0",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
[project.optional-dependencies]
|
|
35
|
+
bake = [
|
|
36
|
+
"requests>=2.28",
|
|
37
|
+
]
|
|
38
|
+
scrape = [
|
|
39
|
+
"feedparser>=6.0",
|
|
40
|
+
"requests>=2.28",
|
|
41
|
+
"beautifulsoup4>=4.12",
|
|
42
|
+
"praw>=7.0",
|
|
43
|
+
]
|
|
44
|
+
test = [
|
|
45
|
+
"pytest>=7.0",
|
|
46
|
+
"pytest-cov>=4.0",
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
[project.urls]
|
|
50
|
+
Homepage = "https://github.com/andrewkwatts-maker/Synomosia"
|
|
51
|
+
Repository = "https://github.com/andrewkwatts-maker/Synomosia"
|
|
52
|
+
Issues = "https://github.com/andrewkwatts-maker/Synomosia/issues"
|
|
53
|
+
|
|
54
|
+
[tool.maturin]
|
|
55
|
+
python-source = "src"
|
|
56
|
+
module-name = "synomosia._core"
|
|
57
|
+
features = ["pyo3/extension-module"]
|
|
58
|
+
|
|
59
|
+
[tool.pytest.ini_options]
|
|
60
|
+
testpaths = ["tests"]
|