diff --git a/AGENTS.md b/AGENTS.md index 5a555c1..a5fc3ac 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -18,7 +18,12 @@ RU платные castalia-PDF не скачивались; sec03#20 RU-дыра wiki-anchor audit (1 wrong QID fixed), cross-section FILE dedup (17 md5-дублей удалено, файл = только в первой секции), `data/MASTER-LIST.md` + `tools/xref.py` (все 12 секций, каждая книга ищется один раз), RAW 07–12 скачан (sections/07/RAW.md + data/isap-raw/).** -Section 07 pending (RAW готов, ~26 NEW-книг + 3 кросс-рефа); 08–12 scope decision pending +Section 07 **COMPLETE 2026-09-26** (27 items: **4 ✅ / 0 🔶 / 23 ❌** RU; 20 EN files, 87 MB. +Rescue wave: CW3-РУ «Психогенез душевных болезней» АСТ 2025 (flibusta.**su** b/390112 — .su ≠ .is!) ++ 7 EN rescues via file-level libgen (objects[]=f, подсказки пользователя): CW2×2, CW3×2, Bovensiepen, +Krieger JAP 2019, Meier I JAP 2019 — статьи контент-верифицированы (не рецензии). Новый tool +`tools/doi.py` (Crossref→DOI→libgen) для article-items; 09 Hill pre-DOI не ищется). 08–12 scope +decision pending (RAW в data/isap-raw/, MASTER-LIST уже просчитал: 08=47 NEW/5 xref, 09=25/12, 10=38/4, 11=9/14, 12=35/5). @@ -269,6 +274,29 @@ sections/0N-/ # one .md per BOOK (chapter-level list items are merged int "The Symbolic Quest" Whitmont 9780691213187 (Princeton). - Use in Phase 0 INSTEAD of / alongside OL; OL still primary for pre-1990 titles. +### 10c. DOI pipeline for article items (`tools/doi.py`) — Crossref → DOI → libgen (2026-09-26, user idea) +- Reading-list items that are JOURNAL ARTICLES: `doi.py "Last" "Title words" --year YYYY` + = Crossref (query.bibliographic + query.author, year ±2) → top-DOI hits ranked by title-token + overlap → for each: **libgen `req=`** (libgen indexes papers BY DOI — verified: Krieger + 10.1111/1468-5922.12544 → exactly ed 84462696; Meier I 10.1111/1468-5922.12545 → 84462697; + Bovensiepen 10.1111/j.0021-8774.2006.00602.x → 15358298; controls 3/3). +- Then `lgdl.py dl ...` + **content-verify: first page must be the PAPER (author + + journal + pages matching RAW + abstract), NOT a review of it** (user rule 2026-09-26). +- Limits: pre-1997 works have no DOIs (1975 Hill paper — fall back to title sweeps); + Crossref top hits can be homonym noise (score column disambiguates; pick the [0.8x] Jungian one). +- Recovered sec07 EN via this route: #05, #17 (ed from user), #20. Also found a JAP 2008 + Bovensiepen book-REVIEW (10.1111/j.1468-5922.2008.00737_3.x) — the review-check matters. + +### 10d. flibusta.**su** — the OTHER flibusta (different content, 2026-09-26, user-found) +- flibusta.su has books NOT on flibusta.is (unique subset). Verified: CW3 RU + «Психогенез душевных болезней» (АСТ 2025, 978-5-17-139315-1) = b/390112 on .su, ABSENT on .is + (a/5272 has 129 books, no CW3). So **.is-only author sweeps can miss RU editions** (sec07 CW3 gap). +- Book/author pages curl-able (server-rendered titles). Downloads = JS POST `/lang/?b=` + → `"b":"0"` = partner-locked (litres exclusive, no file) or a file domain. No static `/b//` + on .su (that's .is). For .su-only books, source the file via libgen/RSL by ISBN, not .su. +- Jung .su author page: 31 books (a/877 is the WRONG different-person «Бартольд»; the Jung .su + author id is unknown — find via the book page's author link). + ### 11. Open Library — the "English RSL" (author works lists, full names, ISBNs) - Tool: `tools/ol.py "author:Lastname, First"` or `tools/ol.py 'title:"Exact EN Title"'` - `openlibrary.org/search.json?q=...&fields=title,author_name,publish_year,language,publisher,isbn` diff --git a/authors/jung-carl-gustav.md b/authors/jung-carl-gustav.md index 8f5afab..02326be 100644 --- a/authors/jung-carl-gustav.md +++ b/authors/jung-carl-gustav.md @@ -31,7 +31,15 @@ | 06 | 01 | CW 9/2 Aion — "Christ, a Symbol of the Self" | ✅ (cross-ref sec01 #05) | | 06 | 02 | CW 11 Psychology and Religion | 🔶 (cross-ref sec02 #06) | | 06 | 03 | CW 12 Psychology and Alchemy | ✅ (cross-ref sec01 #32) | +| 07 | 01 | CW 2 Experimental Researches | ❌ (EN dl ×2, rescue 2026-09-26) | +| 07 | 02 | CW 3 The Psychogenesis of Mental Disease | ✅ «Психогенез душевных болезней» (АСТ 2025, 978-5-17-139315-1) | +| 07 | 03 | CW 8 "On Psychic Energy" + "Review of the Complex Theory" | ✅ (cross-ref sec01 #03) | ## Notes Mainstream name; CW volumes have RU editions across many publishers (see per-item cards). +- 2026-09-26: АСТ (сер. «Философия – Neoclassic») публикует CW последовательно: CW3 = + «Психогенез душевных болезней» (2025, пер. А. Чечина с нем.; ISBN 978-5-17-139315-1; + только на flibusta.**su** b/390112, не на .is). CW2 («Экспериментальные исследования») + в серии пока отсутствует — ре-проб по выходу тома. Ловушка: калка «Психогенез психических + болезней» = 0, реальное название «…душевных болезней». diff --git a/downloads/07-complexes/01-cw2-experimental-researches-en-1973.epub b/downloads/07-complexes/01-cw2-experimental-researches-en-1973.epub new file mode 100644 index 0000000..7e99e92 Binary files /dev/null and b/downloads/07-complexes/01-cw2-experimental-researches-en-1973.epub differ diff --git a/downloads/07-complexes/01-cw2-experimental-researches-en-1981.pdf b/downloads/07-complexes/01-cw2-experimental-researches-en-1981.pdf new file mode 100644 index 0000000..5c3f8f4 --- /dev/null +++ b/downloads/07-complexes/01-cw2-experimental-researches-en-1981.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83c4d41e2ab74ef3732e5dfdbdb094aa972a00e3d4b3eda67028804b8bec1775 +size 27450167 diff --git a/downloads/07-complexes/02-cw3-psychogenesis-mental-disease-en-1982.epub b/downloads/07-complexes/02-cw3-psychogenesis-mental-disease-en-1982.epub new file mode 100644 index 0000000..0fc683f Binary files /dev/null and b/downloads/07-complexes/02-cw3-psychogenesis-mental-disease-en-1982.epub differ diff --git a/downloads/07-complexes/05-bovensiepen-attachment-dissociation-en-2006.pdf b/downloads/07-complexes/05-bovensiepen-attachment-dissociation-en-2006.pdf new file mode 100644 index 0000000..35c9e00 --- /dev/null +++ b/downloads/07-complexes/05-bovensiepen-attachment-dissociation-en-2006.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:39a31835a5752f4ea3c4906c004972835ba70f19fa207779b9b0a6450d9722c9 +size 120210 diff --git a/downloads/07-complexes/17-krieger-dynamic-systems-complex-en-2019.pdf b/downloads/07-complexes/17-krieger-dynamic-systems-complex-en-2019.pdf new file mode 100644 index 0000000..a1d2cdf --- /dev/null +++ b/downloads/07-complexes/17-krieger-dynamic-systems-complex-en-2019.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63a52c41f31a76326b515297bc4cd82312b1a936f81614f52ac075e451068c79 +size 534960 diff --git a/downloads/07-complexes/20-meier-basic-needs-complexes-en-2019.pdf b/downloads/07-complexes/20-meier-basic-needs-complexes-en-2019.pdf new file mode 100644 index 0000000..3c342e2 --- /dev/null +++ b/downloads/07-complexes/20-meier-basic-needs-complexes-en-2019.pdf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91d6d385f19f55ccf519002c4196ab51136aae6bc981f70c53d822dbf9d0001d +size 385839 diff --git a/downloads/07-complexes/MANIFEST.md b/downloads/07-complexes/MANIFEST.md index 7899461..0c0c232 100644 --- a/downloads/07-complexes/MANIFEST.md +++ b/downloads/07-complexes/MANIFEST.md @@ -2,21 +2,23 @@ ## Totals -13 files, 47 MB — RU 0 / EN 13 (9 libgen + 3 OA + 1 ia). +20 files, 87 MB — RU 0 / EN 20 (16 libgen + 3 OA + 1 ia). ## Files (per item) -### 01 — CW 2 Experimental Researches — ❌ (EN restricted) +### 01 — CW 2 Experimental Researches — 2 files (rescued 2026-09-26, file-level lg) | file | size | source | verify | |------|------|--------|--------| -| — (ia: both items RESTRICTED; CarlJungCollectedWorks file = 6-pp front-matter stub, discarded 2026-09-26) | | | | +| 01-cw2-experimental-researches-en-1981.pdf | 27.5 MB | lg f/92461398 (ed 137201613) | 662 pp, title «CW Vol. 2: Experimental Researches» ✓ | +| 01-cw2-experimental-researches-en-1973.epub | 12.4 MB | lg f/92459372 (ed 137199458) | TOC = Vol.2 chapters ✓ | -### 02 — CW 3 Psychogenesis of Mental Disease — 1 file +### 02 — CW 3 Psychogenesis of Mental Disease — 2 files (rescued 2026-09-26, file-level lg) | file | size | source | verify | |------|------|--------|--------| -| 02-cw3-psychogenesis-mental-disease-en-1960.pdf | 2.3 MB | ia CarlJungCollectedWorks | 325 pp, Bollingen front matter ✓ | +| 02-cw3-psychogenesis-mental-disease-en-1960.pdf | 2.3 MB | ia CarlJungCollectedWorks (libgen twin f/100688959 prechecked) | 325 pp, title ✓ | +| 02-cw3-psychogenesis-mental-disease-en-1982.epub | 865 KB | lg f/92459373 (ed 137199459) | TOC = «Psychology of Dementia Praecox» ✓ | ### 03 — CW 8 "On Psychic Energy" — files in sec01 @@ -30,9 +32,11 @@ |------|------|--------|--------| | 04-amer-historiographic-en-2020.pdf | 18.5 MB | ncis.org (OA, TIS Vol.6) | 85 pp, full issue ✓ | -### 05 — Bovensiepen, Attachment-Dissociation Network (JAP 2006) — 0 files +### 05 — Bovensiepen, Attachment-Dissociation Network (JAP 2006) — 1 file (rescued 2026-09-26) -paywalled (Wiley); see Not downloadable. +| file | size | source | verify | +|------|------|--------|--------| +| 05-bovensiepen-attachment-dissociation-en-2006.pdf | 120 KB | lg f/15595405 (ed 15358298) | JAP 2006, 51, 451-466; «Gustav Bovensiepen, Köln»; abstract = статья, не рецензия ✓ | ### 06 — Brewster, The Racial Complex — 1 file @@ -91,9 +95,11 @@ too new (2025); see Not downloadable. | 16-krieger-bridges-en-2014.pdf | 3.8 MB | lg f/93631121 (ed 138428333) | title page ✓ | | 16-krieger-bridges-en-2013.epub | 2.5 MB | lg f/92590602 (ed 137341619) | opf title ✓ | -### 17 — Krieger, dynamic systems (JAP 2019) — 0 files +### 17 — Krieger, dynamic systems (JAP 2019) — 1 file (rescued 2026-09-26, ed от пользователя) -paywalled (Routledge JAP); see Not downloadable. +| file | size | source | verify | +|------|------|--------|--------| +| 17-krieger-dynamic-systems-complex-en-2019.pdf | 535 KB | lg f/83984833 (ed 84462696) | JAP 2019, 64, 5, 738-760; «Nancy M. Krieger, Zurich»; abstract ✓ | ### 18 — Krieger, The Theory of Complexes (IAAP) — 1 file @@ -105,9 +111,11 @@ paywalled (Routledge JAP); see Not downloadable. EN not found (lg 0, ia 0); see Not downloadable. -### 20 — Meier I, Basic needs and complexes (JAP 2019) — 0 files +### 20 — Meier I, Basic needs and complexes (JAP 2019) — 1 file (rescued 2026-09-26) -paywalled; see Not downloadable. +| file | size | source | verify | +|------|------|--------|--------| +| 20-meier-basic-needs-complexes-en-2019.pdf | 386 KB | lg f/83984834 (ed 84462697) | JAP 2019, 64, 5, 761-779; «Isabelle Meier, Zürich»; abstract ✓ | ### 21 — Ribi, Demons of the Inner World — 0 files @@ -157,20 +165,17 @@ EN not found (lg 0, ia 0); see Not downloadable. | item | reason | |------|--------| -| 01 | EN: ia RESTRICTED (experimentalrese00jung_0, experimentalrese0002jung); 6-pp stub discarded | -| 05 | EN: paywall (Wiley JAP 2006) | +| 02 | RU: платное изд. 2025 (АСТ/litres-эксклюзив; flib .su b/390112 partner-locked; libgen/RSL 0) | | 07 | EN: ia RESTRICTED ×2 (wordassociation0000cram, _g5b0); libgen book absent | -| 08 | EN: not found (lg 3 rounds, ia 0 — Chiron small press) | -| 09 | EN: paywall (Spring 1975) | +| 08 | EN: not found (lg 3 rounds + file-level, ia 0 — Chiron small press) | +| 09 | EN: paywall (Spring 1975 — pre-DOI, не ищется по DOI; lg file-level 0) | | 12 | EN: rare privately printed, not found (lg 0, ia 0) | | 13 | EN/DE: Jungianeum 2025, not found (too new; re-probe 2027) | -| 17 | EN: paywall (Routledge JAP 2019) | | 19 | EN: not found (lg 0, ia 0 — Sigo small press) | -| 20 | EN: paywall (Routledge JAP 2019) | -| 21 | EN: not found (lg 0, ia 0) | -| 22 | EN: not found (lg 0, ia 0 — Inner City small press) | +| 21 | EN: not found (lg 0 + file-level, ia 0) | +| 22 | EN: not found (lg 0 + file-level, ia 0 — Inner City small press) | -RU: no RU files for the whole section (all 24 NEW items ❌ RU, gate: MISSING.md §NN). +RU: нет файлов по 23 ❌-item'ам (gate: MISSING.md §NN); #02 = ✅ (RU изд. найдено, файл платный). ## Notes @@ -178,3 +183,7 @@ RU: no RU files for the whole section (all 24 NEW items ❌ RU, gate: MISSING.md downloaded by f_id (KEY vs f_id rule); precheck v2 before each download. - 2026-09-26: libgen CDN throttled at start (0 KB/s all edges); queue + watchdog 6×30 min, resolved within ~1 h. +- 2026-09-26 (rescue wave 2): +7 EN files (CW2×2, CW3×2, Bovensiepen, Krieger, Meier I) — + file-level libgen-поиск (objects[]=f, подсказки пользователя). Все верифицированы: + книги по page count + title; статьи по first page (автор+журнал+страницы=RAW, abstract = + не рецензия). Удалены ALD trial-фрагменты CW3 (ald-epub, ald-fb2.zip) и .su HTML-заглушки. diff --git a/sections/07-complexes/01-cw2-experimental-researches.md b/sections/07-complexes/01-cw2-experimental-researches.md index ddeb5b6..456b54c 100644 --- a/sections/07-complexes/01-cw2-experimental-researches.md +++ b/sections/07-complexes/01-cw2-experimental-researches.md @@ -1,23 +1,29 @@ -# Experimental Researches (CW 2) +# CW2: Experimental Researches (Collected Works of C.G. Jung, Vol. 2) (Princeton UP, 1966) -**Author(s):** Юнг, Карл Густав [1875-1961] -**Shelf mark:** JCE2 -**Section:** 07 Theory of Complexes & Association Experiment -**Original:** EN original (Princeton CW 1959) -**Status:** ❌ — no RU (verified 2026-09-26: RSL/libgen/web 0) +**Author(s):** Jung, Carl Gustav [1875-1961] +**Shelf mark:** — +**Section:** 07 Complexes / Jung CW +**Status:** ❌ — no RU edition (verified 2026-09-26, gate: MISSING.md §01); EN dl ✓ 2 (rescued 2026-09-26) ## Editions — EN | Title / edition | Publisher | Year | Pages | ISBN | Notes | |-----------------|-----------|------|-------|------|-------| -| Experimental Researches (CW 2) | Princeton UP (C. G. Jung CW) | 1959 | | | ia: both items RESTRICTED; CarlJungCollectedWorks file = 6-pp front-matter stub | +| Experimental Researches (CW Vol. 2) | Princeton UP (Bollingen Ser. XX) | 1966 | 405 | 9780691017925 | reading-list edition; EN dl: 1981 Princeton pdf (lg 92461398, 662 pp) + 1973 Princeton epub (lg 92459372); ia `collectedworksof02jung` RESTRICTED (6-pp stub) | -## Editions — RU +## Downloads -— нет (verified 2026-09-26) +| lang | file | size | source | +|------|------|------|--------| +| EN | 01-cw2-experimental-researches-en-1981.pdf | 27 MB | lg f/92461398 (ed 137201613) | +| EN | 01-cw2-experimental-researches-en-1973.epub | 12 MB | lg f/92459372 (ed 137199458) | + +## Catalog records + +РГБ: rsl.py «Юнг Карл Густав»: 20 записей на стр.1 — «Экспериментальные исследования»/«Ассоциативный эксперимент»/«Слова»/«Исследование ассоциаций» НЕ числятся (проверено 2026-09-26); Musaget 1929/1939 том 3 = русские оригиналы (а не перевод CW2) +flib: a/5272 (.is, 129 книг) + .su author/877 (31 книга) — «Экспериментальные исследования» нет (2026-09-26); ast.ru/litres/Yandex-Books — нет (2026-09-26) ## Notes -- 2026-09-26: EN full text borrow-only (ia experimentalrese00jung_0 / experimentalrese0002jung RESTRICTED). -- RU: RSL «Опытные исследования»/«Психогенез» 0, libgen 0, web 0 — RU издания CW2 не найдено. -- RU-объём CW2 в каталогах отсутствует (verified 2026-09-26). +- 2026-09-26: EN rescue по file-level libgen-поиску (подсказка пользователя, URL objects[]=f): 3 издания CW2 (1973/1981 Princeton + Course Book); скачаны 2 (1981 pdf 662 pp — полный том; 1973 epub). +- 2026-09-26: RU-свип расширен: flib .su (уникальный контент .su ≠ .is — там нашлась CW3!), ast.ru server-side search, litres author, Yandex Books, 4+ RU-title варианта. CW2-РУ не найдено; АСТ серия «Философия – Neoclassic» (CW3 = «Психогенез душевных болезней», 2025) — CW2 там пока отсутствует (возможна будущая публикация). diff --git a/sections/07-complexes/02-cw3-psychogenesis-mental-disease.md b/sections/07-complexes/02-cw3-psychogenesis-mental-disease.md new file mode 100644 index 0000000..794485e --- /dev/null +++ b/sections/07-complexes/02-cw3-psychogenesis-mental-disease.md @@ -0,0 +1,38 @@ +# CW3: The Psychogenesis of Mental Disease (Collected Works of C.G. Jung, Vol. 3) (Princeton UP, 1960) + +**Author(s):** Jung, Carl Gustav [1875-1961] +**Shelf mark:** — +**Section:** 07 Complexes / Jung CW +**Status:** ✅ — RU 1 изд. (АСТ 2025, «Психогенез душевных болезней»); EN dl ✓ 2 + +## Editions — EN + +| Title / edition | Publisher | Year | Pages | ISBN | Notes | +|-----------------|-----------|------|-------|------|-------| +| The Psychogenesis of Mental Disease (CW Vol. 3) | Princeton UP (Bollingen Ser. XX) | 1960 | 405 | 9780691017932 | reading-list edition; EN dl: 1960 Princeton pdf (ia, 325 pp; libgen twin f/100688959) + 1982 Princeton epub (lg f/92459373) | + +## Editions — RU + +| RU title | Publisher | Year | Pages | Translator | ISBN | +|----------|-----------|------|-------|------------|------| +| Психогенез душевных болезней | АСТ (сер. «Философия – Neoclassic») | 2025 | — | А. Чечина (с нем. PSYCHOGENESE DER GEISTESKRANKHEITEN; © пер. 2022) | 978-5-17-139315-1 | + +## Downloads + +| lang | file | size | source | +|------|------|------|--------| +| EN | 02-cw3-psychogenesis-mental-disease-en-1960.pdf | 2.3 MB | ia CarlJungCollectedWorks (lg twin f/100688959) | +| EN | 02-cw3-psychogenesis-mental-disease-en-1982.epub | 865 KB | lg f/92459373 (ed 137199459) | + +## Catalog records + +РГБ: rsl.py «Психогенез душевных болезней»: 0 (2025 — каталог не успел, verified 2026-09-26) +flib: b/390112 (flibusta.**su** ТОЛЬКО, не .is; download = partner-locked litres, JS-флоу POST /lang/?b=390112 → b=0) + +## Notes + +- **RU-резcue 2026-09-26 (подсказка пользователя):** «Психогенез душевных болезней» на flibusta.su (b/390112) — книга, отсутствующая на flibusta.is. Ключевое: .su ≠ .is по контенту (у .su свой уникал). Изд-во АСТ, серия «Философия – Neoclassic» (современное собрание сочинений Юнга), пер. А. Чечина с немецкого, ISBN 978-5-17-139315-1 (AST Publishers 2025). +- Контент = CW3: открывается «Психология dementia praecox», работы 1907-1958 (подтверждено по аннотации .su + Yandex Books read-online фрагмент). +- CALQUE-Ловушка: поиск «Психогенез ПСИХИЧЕСКИХ болезней» (калька) = 0; реальное название «Психогенез **душевных** болезней» — найдено только браузерным поиском пользователя. +- EN rescue 2026-09-26 (file-level libgen): 1960 pdf (325 pp, полный том) + 1982 epub; ia `collectedworksof03jung` RESTRICTED. +- Файл RU-издания не скачан: платное издание 2025 (litres-эксклюзив; libgen/RSL = 0). diff --git a/sections/07-complexes/02-cw3-psychogenesis-of-mental-disease.md b/sections/07-complexes/02-cw3-psychogenesis-of-mental-disease.md deleted file mode 100644 index ac03d74..0000000 --- a/sections/07-complexes/02-cw3-psychogenesis-of-mental-disease.md +++ /dev/null @@ -1,28 +0,0 @@ -# Psychogenesis of Mental Disease (CW 3) - -**Author(s):** Юнг, Карл Густав [1875-1961] -**Shelf mark:** JCE3 -**Section:** 07 Theory of Complexes & Association Experiment -**Original:** EN original (Princeton CW 1960) -**Status:** ❌ — no RU (verified 2026-09-26: RSL/libgen/web 0) - -## Editions — EN - -| Title / edition | Publisher | Year | Pages | ISBN | Notes | -|-----------------|-----------|------|-------|------|-------| -| Psychogenesis of Mental Disease (CW 3, ed. R. F. C. Hull) | Princeton UP (C. G. Jung CW) | 1960/1982 | 325 | | ia CarlJungCollectedWorks | - -## Editions — RU - -— нет (verified 2026-09-26) - -## Downloads - -| lang | file | size | source | -|------|------|------|--------| -| EN | 02-cw3-psychogenesis-mental-disease-en-1960.pdf | 2.3 MB | ia CarlJungCollectedWorks | - -## Notes - -- 2026-09-26: EN 325 pp, content-verified (Bollingen Series XX front matter). -- RU: RSL «Психогенез психических болезней» 0, libgen 0, web 0 (verified 2026-09-26). diff --git a/sections/07-complexes/05-bovensiepen-attachment-dissociation.md b/sections/07-complexes/05-bovensiepen-attachment-dissociation.md index 7577221..85272df 100644 --- a/sections/07-complexes/05-bovensiepen-attachment-dissociation.md +++ b/sections/07-complexes/05-bovensiepen-attachment-dissociation.md @@ -4,18 +4,25 @@ **Shelf mark:** — **Section:** 07 Theory of Complexes & Association Experiment **Original:** EN original (paywalled) -**Status:** ❌ — no RU (verified 2026-09-26); EN paywalled +**Status:** ❌ — no RU (verified 2026-09-26); EN dl ✓ (rescued 2026-09-26, JAP-статья в libgen) ## Editions — EN | Title / edition | Publisher | Year | Pages | ISBN | Notes | |-----------------|-----------|------|-------|------|-------| -| Attachment-Dissociation Network… (J. Analytical Psychology 51:3, 2006) | Routledge (JAP) | 2006 | 451-466 | DOI 10.1111/j.0021-8774.2006.00602.x | paywall | +| Attachment-Dissociation Network… (J. Analytical Psychology 51:3, 2006) | Routledge (JAP) | 2006 | 451-466 | DOI 10.1111/j.0021-8774.2006.00602.x | EN dl: lg ed 15358298 (f 15595405) + PEP-Web twin ed 153629551 | ## Editions — RU — нет (verified 2026-09-26) +## Downloads + +| lang | file | size | source | +|------|------|------|--------| +| EN | 05-bovensiepen-attachment-dissociation-en-2006.pdf | 120 KB | lg f/15595405 (ed 15358298) | + ## Notes - 2026-09-26: first name TBC (PEP-Web); RSL/libgen 0. +- 2026-09-26: EN rescue — file-level libgen-поиск (подсказка пользователя, URL objects[]=f): ed 15358298 (JAP 2006, 51, 451-466) + PEP-Web ed 153629551. Контент-верификация: «Gustav Bovensiepen, Köln», abstract о complex theory — статья, не рецензия. Full first name = Gustav. diff --git a/sections/07-complexes/17-krieger-dynamic-systems-complex.md b/sections/07-complexes/17-krieger-dynamic-systems-complex.md index d875695..b481e17 100644 --- a/sections/07-complexes/17-krieger-dynamic-systems-complex.md +++ b/sections/07-complexes/17-krieger-dynamic-systems-complex.md @@ -3,19 +3,26 @@ **Author(s):** Krieger, Nancy M. **Shelf mark:** — **Section:** 07 Theory of Complexes & Association Experiment -**Original:** EN original (paywalled) -**Status:** ❌ — no RU (verified 2026-09-26); EN paywalled +**Original:** EN original (JAP; paywall в журнале, но файл в libgen) +**Status:** ❌ — no RU (verified 2026-09-26); EN dl ✓ (rescued 2026-09-26) ## Editions — EN | Title / edition | Publisher | Year | Pages | ISBN | Notes | |-----------------|-----------|------|-------|------|-------| -| A dynamic systems approach… (J. Analytical Psychology 64:5, 2019) | Routledge (JAP) | 2019 | | | paywall | +| A dynamic systems approach… (J. Analytical Psychology 64:5, 2019) | Routledge (JAP) | 2019 | 738-760 | DOI 10.1111/1468-5922.12544 | EN dl: lg ed 84462696 (f 83984833) | ## Editions — RU — нет (verified 2026-09-26) +## Downloads + +| lang | file | size | source | +|------|------|------|--------| +| EN | 17-krieger-dynamic-systems-complex-en-2019.pdf | 535 KB | lg f/83984833 (ed 84462696) | + ## Notes - 2026-09-26: same author as #16/#18; RSL/libgen 0. +- 2026-09-26: EN rescue — ed 84462696 (подсказка пользователя: edition.php?id=84462696). Контент-верификация: «Nancy M. Krieger, Zurich», JAP 2019, 64, 5, 738-760, abstract о feeling-toned complex — статья, не рецензия. diff --git a/sections/07-complexes/20-meier-basic-needs-complexes.md b/sections/07-complexes/20-meier-basic-needs-complexes.md index f2e0898..854dce8 100644 --- a/sections/07-complexes/20-meier-basic-needs-complexes.md +++ b/sections/07-complexes/20-meier-basic-needs-complexes.md @@ -3,19 +3,26 @@ **Author(s):** Meier, Isabelle **Shelf mark:** — **Section:** 07 Theory of Complexes & Association Experiment -**Original:** EN original (paywalled) -**Status:** ❌ — no RU (verified 2026-09-26); EN paywalled +**Original:** EN original (JAP; paywall в журнале, но файл в libgen) +**Status:** ❌ — no RU (verified 2026-09-26); EN dl ✓ (rescued 2026-09-26) ## Editions — EN | Title / edition | Publisher | Year | Pages | ISBN | Notes | |-----------------|-----------|------|-------|------|-------| -| Basic needs and complexes… (J. Analytical Psychology 64:5, 2019) | Routledge (JAP) | 2019 | 761-779 | | paywall | +| Basic needs and complexes… (J. Analytical Psychology 64:5, 2019) | Routledge (JAP) | 2019 | 761-779 | DOI 10.1111/1468-5922.12545 (Crossref-верифицирован 2026-09-26, tools/doi.py) | EN dl: lg ed 84462697 (f 83984834); сосед по выпуску с #17 Krieger (64:5) | ## Editions — RU — нет (verified 2026-09-26) +## Downloads + +| lang | file | size | source | +|------|------|------|--------| +| EN | 20-meier-basic-needs-complexes-en-2019.pdf | 386 KB | lg f/83984834 (ed 84462697) | + ## Notes - 2026-09-26: NOT the same person as C. A. Meier (#19); RSL/libgen 0. +- 2026-09-26: EN rescue — file-level libgen-поиск «Basic needs complexes schema» → ed 84462697 (JAP 64:5 2019, pp.761-779). Контент-верификация: «Isabelle Meier, Zürich», abstract о feeling-toned complexes — статья, не рецензия. diff --git a/sections/07-complexes/INDEX.md b/sections/07-complexes/INDEX.md index b0cbef2..f8a0737 100644 --- a/sections/07-complexes/INDEX.md +++ b/sections/07-complexes/INDEX.md @@ -1,19 +1,19 @@ # Section 07 — Theory of Complexes & the Association Experiment: index Source: ISAP Zurich reading list (RAW.md). 27 items: 16 NEW books + 8 NEW articles + 3 cross-refs. -Status (2026-09-26, Phase 0–2 done): ✅ = RU found; 🔶 = partial; ❌ = no RU (verified, gate: MISSING.md §NN). EN downloads in progress (libgen CDN throttle). +Status (2026-09-26, FINAL after rescue wave): ✅ = RU found; 🔶 = partial; ❌ = no RU (verified, gate: MISSING.md §NN). Files: 20 EN (all content-verified), RU 0 (CW3-2025 платное). | # | Group | EN title | Author(s) | Status | File | |---|-------|----------|-----------|--------|------| | 01 | A.1 | CW 2 — Experimental Researches (Part I: Studies in Word Association + "On the Doctrine of Complexes") | Jung | ❌ | 01-cw2-experimental-researches.md | -| 02 | A.1 | CW 3 — The Psychogenesis of Mental Disease ("The Psychology of Dementia Praecox") | Jung | ❌ | 02-cw3-psychogenesis-mental-disease.md | +| 02 | A.1 | CW 3 — The Psychogenesis of Mental Disease ("The Psychology of Dementia Praecox") | Jung | ✅ | 02-cw3-psychogenesis-mental-disease.md | | 03 | A.1 | CW 8 — "On Psychic Energy"; "Review of the Complex Theory" | Jung | ✅ | 03-cw8-psychic-energy.md | | 04 | A.2 | "Histographic Challenges in Understanding the Development of Psychoanalysis…" (Independent Scholar 2020, OA) | Amer, K. | ❌ | 04-amer-histographic-challenges.md | | 05 | A.2 | "Attachment-Dissociation Network: Some Thoughts About a Modern Complex Theory" (JAP 51:3, 2006) | Bovensiepen, G. | ❌ | 05-bovensiepen-attachment-dissociation.md | | 06 | A.2 | The Racial Complex: Jungian Perspective on Culture and Race (Routledge 2020) | Brewster, F. | ❌ | 06-brewster-racial-complex.md | | 07 | A.2 | Word Association (Academic Press 1968) | Cramer, P. | ❌ | 07-cramer-word-association.md | -| 08 | A.2 | Complexes: Diagnosis and Therapy in Analytical Psychology (Chiron 1999) | Dieckmann, H. | ❌ | 08-dieckmann-complexes-diagnosis.md | -| 09 | A.2 | "Individuation and the Association Experiment" (Spring 1975, pp. 145-151) | Hill, J. | ❌ | 09-hill-individuation-association.md | +| 08 | A.2 | Complexes: Diagnosis and Therapy in Analytical Psychology (Chiron 1999) | Dieckmann, H. | ❌ | 08-dieckmann-complexes-diagnosis-and-therapy.md | +| 09 | A.2 | "Individuation and the Association Experiment" (Spring 1975, pp. 145-151) | Hill, J. | ❌ | 09-hill-individuation-association-experiment.md | | 10 | A.2 | Complex / Archetype / Symbol in the Psychology of C. G. Jung (Pantheon 1959) | Jacobi, J. | ✅ | 10-jacobi-complex-archetype-symbol.md | | 11 | A.2 | The Dynamics of Symbols (Fromm Int'l 1992) | Kast, V. | ✅ | 11-kast-dynamics-of-symbols.md | | 12 | A.2 | The Association Experiment in the Therapeutic Context (excerpts, priv. printed, tr. Irene Gad) | Kast, V. | ❌ | 12-kast-association-therapeutic-context.md | @@ -25,8 +25,8 @@ Status (2026-09-26, Phase 0–2 done): ✅ = RU found; 🔶 = partial; ❌ = no | 18 | A.2 | "The Theory of Complexes" (IAAP, Contemporary Understandings of Analytical Psychology) | Krieger, N. | ❌ | 18-krieger-theory-complexes-iaap.md | | 19 | A.2 | The Unconscious in Its Empirical Manifestations (Sigo 1984) | Meier, C. A. | ❌ | 19-meier-unconscious-empirical.md | | 20 | A.2 | "Basic needs and complexes: similarities between feeling-toned complexes, emotional schema and affective states" (JAP 64:5, 2019) | Meier, I. | ❌ | 20-meier-basic-needs-complexes.md | -| 21 | A.2 | Demons of the Inner World: Understanding our Hidden Complexes (Shambhala 1990) | Ribi, A. | ❌ | 21-ribi-demons-inner-world.md | -| 22 | A.2 | The Complex: Path of Transformation from Archetype to Ego (Inner City 2002) | Shalit, E. | ❌ | 22-shalit-complex-transformation.md | +| 21 | A.2 | Demons of the Inner World: Understanding our Hidden Complexes (Shambhala 1990) | Ribi, A. | ❌ | 21-ribi-demons-of-the-inner-world.md | +| 22 | A.2 | The Complex: Path of Transformation from Archetype to Ego (Inner City 2002) | Shalit, E. | ❌ | 22-shalit-the-complex.md | | 23 | A.2 | Jung and the Making of Modern Psychology: The Dream of a Science (CUP 2003) | Shamdasani, S. | ❌ | 23-shamdasani-making-modern-psychology.md | | 24 | A.2 | Vision, Reality and Complex: Jung, Politics and Culture (Routledge 2021) | Singer, T. | ❌ | 24-singer-vision-reality-complex.md | | 25 | A.3 | "The Id Knows More than the Ego Admits…" (Brain Sciences 2(2), 2012, OA: PMC4061793) | Solms, M.; Panksepp, J. | ❌ | 25-solms-panksepp-id-knows-more.md | diff --git a/sections/07-complexes/MISSING.md b/sections/07-complexes/MISSING.md index b4bf52b..a11c592 100644 --- a/sections/07-complexes/MISSING.md +++ b/sections/07-complexes/MISSING.md @@ -1,15 +1,11 @@ # Section 07 — Theory of Complexes & Association Experiment: MISSING -## ❌ (24) +## ❌ (23) ### 01 — CW 2 Experimental Researches (Jung) -- RU: RSL «Опытные исследования»/«Психогенез психических болезней» 0, libgen 0, web 0 (verified 2026-09-26). -- EN: ia RESTRICTED (both items); CarlJungCollectedWorks file = 6-pp front-matter stub. - -### 02 — CW 3 Psychogenesis of Mental Disease (Jung) - -- RU: RSL «Психогенез психических болезней» 0, libgen 0, web 0 (verified 2026-09-26). EN downloaded (ia 325 pp). +- RU: RSL «Опытные исследования»/«Ассоциативный эксперимент»/«Слова» 0, flib .is+.su 0, ast.ru/litres/Yandex-Books 0, АСТ серия «Neoclassic» CW2 пока отсутствует (verified 2026-09-26). +- EN: rescued 2026-09-26 (lg file-level: 1981 pdf + 1973 epub); ia RESTRICTED. ### 04 — Historiographic Challenges… (Amer, 2020) @@ -17,7 +13,7 @@ ### 05 — Attachment-Dissociation Network (Bovensiepen, JAP 2006) -- RU: RSL/libgen 0 (verified 2026-09-26). EN paywalled. +- RU: RSL/libgen 0 (verified 2026-09-26). EN: rescued 2026-09-26 (lg ed 15358298; контент = статья, не рецензия). ### 06 — The Racial Complex (Brewster, 2019/2020) @@ -58,7 +54,7 @@ ### 17 — A dynamic systems approach… (Krieger, JAP 2019) -- RU: RSL/libgen 0 (verified 2026-09-26). EN paywalled. +- RU: RSL/libgen 0 (verified 2026-09-26). EN: rescued 2026-09-26 (lg ed 84462696, подсказка пользователя). ### 18 — The Theory of Complexes (Krieger, IAAP) @@ -71,7 +67,7 @@ ### 20 — Basic needs and complexes (Meier I., JAP 2019) -- RU: RSL/libgen 0 (verified 2026-09-26). EN paywalled. +- RU: RSL/libgen 0 (verified 2026-09-26). EN: rescued 2026-09-26 (lg ed 84462697). ### 21 — Demons of the Inner World (Ribi, 1990) @@ -112,5 +108,11 @@ - 2026-09-26: initial sweep (Phase 0–2). Re-probe #13 (Kast Jungianeum 2025) in 2027 (libgen lag for new DE ~6-12 months). - 2026-09-26: user oracle table pending (presented in session; see SUMMARY). - 2026-09-26 (diagnostic): vs 2018 list edition (Wayback) the 13-item core is unchanged; 2025 added - 11 new items. CW2/CW3 RU title variants (6) re-swept: 0. User oracle: 0 rescues. 0-RU accepted as - legitimate gap (documented in SUMMARY Notes). + 11 new items. CW2/CW3 RU title variants (6) re-swept: 0. User oracle: 0 rescues. +- 2026-09-26 (rescue wave 2, подсказки пользователя): (1) **flibusta.su ≠ .is** — CW3 найдена на .su + («Психогенез душевных болезней», АСТ 2025, b/390112; на .is её нет) → #02 = ✅; (2) file-level + libgen-поиск (objects[]=f) вывел EN для CW2×2, CW3×2, Bovensiepen, Krieger JAP 2019, Meier I + JAP 2019 (все контент-верифицированы: статьи = с abstract/автором/журналом, не рецензии). + Протокол верификации EN-статей: pdftotext first page — автор+журнал+страницы = RAW, тема = abstract, + не «review of». CW2-РУ и Ribi/Shalit/Hill/Meier-1984/Dieckmann: доп. варианты (ast.ru, litres, + Yandex Books, 4+ libgen-фраз) = 0. diff --git a/sections/07-complexes/SUMMARY.md b/sections/07-complexes/SUMMARY.md index 37b2fde..41f99c7 100644 --- a/sections/07-complexes/SUMMARY.md +++ b/sections/07-complexes/SUMMARY.md @@ -2,19 +2,19 @@ ## Final counts -27 items: **3 ✅ / 0 🔶 / 24 ❌** (RU). Files: 13 (47 MB) — EN 13, RU 0; xref: 3 (sec01 ×2, sec04 ×1). +27 items: **4 ✅ / 0 🔶 / 23 ❌** (RU). Files: 20 (87 MB) — EN 20, RU 0; xref: 3 (sec01 ×2, sec04 ×1). Section = mostly 2003–2021 academic Jungian books + JAP/Spring/Chiron papers: RU market -has no editions of any of them (full negatives gate v3 per item, see MISSING.md). +has no editions except CW3 (АСТ 2025, rescue 2026-09-26 via flibusta.su). ## Publication status at a glance | # | EN book | EN ISBN | RU book | RU ISBN | DL EN | DL RU | |---|---------|---------|---------|---------|-------|-------| -| 01 | CW 2 Experimental Researches (1959) | — (CW vol) | — | ❌ | — (ia restricted) | — (absent) | -| 02 | CW 3 Psychogenesis of Mental Disease (1960) | — (CW vol) | — | ❌ | 1 pdf (ia, 325 pp) | — (absent) | +| 01 | CW 2 Experimental Researches (1959) | — (CW vol) | — | ❌ | 2 (pdf 662 pp + epub, lg rescue) | — (absent) | +| 02 | CW 3 Psychogenesis of Mental Disease (1960) | — (CW vol) | Психогенез душевных болезней (АСТ 2025, пер. Чечина) | ✅ 978-5-17-139315-1 | 2 (pdf 325 pp + epub, lg rescue) | — (paid 2025, litres-эксклюзив) | | 03 | CW 8: "On Psychic Energy" + "Review of the Complex Theory" (xref sec01 #03) | — (CW vol) | Структура и динамика психического (Когито 2008/2010) | ✅ 978-5-89353-230-2 | sec01: 1 pdf | sec01: 2 fb2 | | 04 | Amer, Historiographic Challenges (TIS 2020, OA) | — (paper) | — | ❌ | 1 pdf (OA, 85 pp) | — (absent) | -| 05 | Bovensiepen, Attachment-Dissociation Network (JAP 2006) | — (paper) | — | ❌ | — (paywall) | — (absent) | +| 05 | Bovensiepen, Attachment-Dissociation Network (JAP 2006) | — (paper) | — | ❌ | 1 pdf (JAP, lg) | — (absent) | | 06 | Brewster, The Racial Complex (Routledge 2019/20) | ✅ 9780367177676 | — | ❌ | 1 pdf | — (absent) | | 07 | Cramer, Word Association (Academic Press 1968) | ✅ 0121964507 | — | ❌ | — (ia restricted ×2) | — (absent) | | 08 | Dieckmann, Complexes: Diagnosis and Therapy (Chiron 1999) | ✅ 1888602090 | — | ❌ | — (not found) | — (absent) | @@ -26,10 +26,10 @@ has no editions of any of them (full negatives gate v3 per item, see MISSING.md) | 14 | Kimbles, Intergenerational Complexes (Routledge 2021) | ✅ 9781003053378 | — | ❌ | 1 pdf | — (absent) | | 15 | Knox, Archetype, Attachment, Analysis (Routledge 2003) | ✅ 9781583911280 | — | ❌ | 1 pdf | — (absent) | | 16 | Krieger, Bridges to Consciousness (Routledge 2014) | ✅ 9780415791724 | — | ❌ | 1 pdf + 1 epub | — (absent) | -| 17 | Krieger, A dynamic systems approach (JAP 2019) | — (paper) | — | ❌ | — (paywall) | — (absent) | +| 17 | Krieger, A dynamic systems approach (JAP 2019) | — (paper) | — | ❌ | 1 pdf (JAP, lg) | — (absent) | | 18 | Krieger, The Theory of Complexes (IAAP, OA) | — (paper) | — | ❌ | 1 pdf (OA) | — (absent) | | 19 | Meier C.A., The Unconscious in Its Empirical Manifestations (Sigo 1984) | ✅ 0938434101 | — | ❌ | — (not found) | — (absent) | -| 20 | Meier I., Basic needs and complexes (JAP 2019) | — (paper) | — | ❌ | — (paywall) | — (absent) | +| 20 | Meier I., Basic needs and complexes (JAP 2019) | — (paper) | — | ❌ | 1 pdf (JAP, lg) | — (absent) | | 21 | Ribi, Demons of the Inner World (Shambhala 1990) | ✅ 0877735794 | — | ❌ | — (not found) | — (absent) | | 22 | Shalit, The Complex (Inner City 2002) | ✅ 0919123996 | — | ❌ | — (not found) | — (absent) | | 23 | Shamdasani, Jung and the Making of Modern Psychology (CUP 2003) | ✅ 0521539099 | — | ❌ | 1 pdf | — (absent) | @@ -37,7 +37,7 @@ has no editions of any of them (full negatives gate v3 per item, see MISSING.md) | 25 | Solms & Panksepp, The Id Knows More (Brain Sciences 2012, OA) | — (paper) | — | ❌ | 1 pdf | — (absent) | | 26 | Alcaro & Carta, The Affective Core of the Self (Frontiers 2017, OA) | — (paper) | — | ❌ | 1 pdf (OA) | — (absent) | | 27 | Panksepp & Biven, The Archaeology of Mind (Norton 2012) | ⚠ (Norton) | — | ❌ | 1 epub (Norton 2012) | — (absent) | -| | **totals** | | | | **13 files** | **0 files** | +| | **totals** | | | | **20 files** | **0 files** | Legend (ISBN columns): ✅ ISBN found · ⚠ published but no ISBN (TBC/new/CW vol) · ❌ no such edition (verified absent) · — no such edition type (paper/CW vol/pre-ISBN). @@ -88,3 +88,17 @@ Legend (ISBN columns): ✅ ISBN found · ⚠ published but no ISBN (TBC/new/CW v «Психогенез психических заболеваний», «Возникновение душевных болезней», «Психогенез психозов») → 0 (RSL+libgen+web). User browser check: 0. Verdict: 0-RU is a LEGITIMATE gap — the section core = Jung CW2/CW3 (psychiatric volumes RU CW publishers skipped) + niche small-press monographs. +- 2026-09-26 (rescue wave 2, PARTIALLY REVOKES the verdict above): + (1) **CW3 RU FOUND** — «Психогенез душевных болезней» АСТ 2025 (flibusta.su b/390112, не на .is; + калка «психических» вела в тупик; найден браузерным поиском пользователя). #02 = ✅. + (2) **EN rescues (file-level libgen, objects[]=f, подсказки пользователя)**: CW2×2 (1981 pdf 662 pp + + 1973 epub), CW3×2 (1960 pdf 325 pp + 1982 epub), Bovensiepen JAP 2006, Krieger JAP 2019 + (ed 84462696, ссылка пользователя), Meier I JAP 2019 (ed 84462697) — все 7 файлов + контент-верифицированы (статьи: автор+журнал+abstract = RAW, не рецензии). + (3) **Новый инструмент tools/doi.py**: Crossref author+title → DOI → libgen req=DOI + (контроли: 3/3 верные ed). Для статьи-items секций 08–12 — основной маршрут. + (4) CW2-РУ: доп. свип (ast.ru server-side search, litres, Yandex Books, АСТ серия «Neoclassic») + — отсутствует (серия «Neoclassic» публикует CW последовательно; CW3 = 2025). +- 2026-09-26: система .su ≠ .is (flibusta): у .su свой уникальный контент (CW3 там, на .is нет); + .su book/author-страницы curl-ятся, даунлоуд = JS POST /lang/?b= (partner-locked litres + при b=0). Для .su-книг искать файл в libgen/RSL по ISBN, не на самом .su. diff --git a/tools/doi.py b/tools/doi.py new file mode 100755 index 0000000..5fdd866 --- /dev/null +++ b/tools/doi.py @@ -0,0 +1,90 @@ +#!/usr/bin/env python3 +"""doi.py — article-item pipeline: author+title → Crossref DOI → libgen availability. + +For reading-list items that are JOURNAL ARTICLES (not books), the DOI is the most +reliable identifier: Crossref/OpenAlex resolve it from author+title, and libgen.vg +indexes many papers BY DOI (req= — verified 2026-09-26: Krieger +10.1111/1468-5922.12544 → exactly ed 84462696). + +usage: doi.py "Lastname" "Title words..." [--year YYYY] [--no-libgen] + +Steps: +1. Crossref /works?query.bibliographic=TITLE&query.author=LAST (rows=8). +2. Rank: title token overlap + year proximity (if --year). +3. For top hits with DOI: libgen req= → count edition links (4s polite). +4. Print candidates: title | journal | author | year | DOI | LG: n (ed ids). + +Limits: pre-1997 works have no DOIs (1975 Hill paper = unresolvable — fall back to +title sweeps). Conference papers in APA PsycEXTRA (10.1037/e*) are often noise. +After a hit: content-verify the downloaded file (first page: author+journal+pages +must match RAW; must be the paper, not a review of it). +""" +import json, re, sys, time, urllib.parse, urllib.request + +UA = {'User-Agent': 'jung-research/1.0 (mailto:dmitry@kokorin.org)'} +LG_UA = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) Firefox/130.0'} + + +def crossref(last, title, year=None): + q = {'query.bibliographic': title, 'query.author': last, 'rows': 8} + if year: + q['filter'] = f'from-pub-date:{year-2},until-pub-date:{year+2}' + url = f"https://api.crossref.org/works?{urllib.parse.urlencode(q)}" + req = urllib.request.Request(url, headers=UA) + d = json.load(urllib.request.urlopen(req, timeout=40)) + out = [] + for it in d['message']['items']: + doi = it.get('DOI') + if not doi: + continue + a = it.get('author', [{}])[0] + fam = a.get('family', '?') + yr = (it.get('issued', {}).get('date-parts') or [['?']])[0][0] + src = (it.get('container-title') or [''])[0] + t = it.get('title', ['?'])[0] + # token overlap score + want = set(re.findall(r'\w+', title.lower())) + got = set(re.findall(r'\w+', (t + ' ' + src).lower())) + score = len(want & got) / max(1, len(want)) + out.append({'title': re.sub(r'<[^>]+>', '', t), 'journal': src, 'author': fam, + 'year': yr, 'doi': doi, 'score': score}) + out.sort(key=lambda x: (-x['score'], abs((x['year'] or 0) - (year or 0)) if year else 0)) + return out + + +def libgen_doi(doi): + url = f"https://libgen.vg/index.php?req={urllib.parse.quote(doi)}&res=25" + req = urllib.request.Request(url, headers=LG_UA) + try: + h = urllib.request.urlopen(req, timeout=40).read().decode('utf-8', 'replace') + except Exception as e: + return f"ERR {e}" + ids = sorted(set(re.findall(r'edition\.php\?id=(\d+)', h))) + return f"{len(ids)} ({', '.join(ids[:5])})" if ids else "0" + + +def main(): + args = [a for a in sys.argv[1:] if not a.startswith('--')] + flags = [a for a in sys.argv[1:] if a.startswith('--')] + year = None + if '--year' in sys.argv[1:]: + year = int(sys.argv[1:][sys.argv[1:].index('--year') + 1]) + if len(args) < 2: + print(__doc__) + sys.exit(1) + last, title = args[0], ' '.join(args[1:]) + hits = crossref(last, title, year) + if not hits: + print("(no Crossref hits with DOI)") + return + for h in hits[:6]: + line = (f"[{h['score']:.2f}] {h['title'][:70]} | {h['journal'][:35]} | " + f"{h['author']} | {h['year']} | {h['doi']}") + if '--no-libgen' not in flags: + time.sleep(3) + line += f" | LG: {libgen_doi(h['doi'])}" + print(line) + + +if __name__ == '__main__': + main()