Giter VIP home page Giter VIP logo

samuelbradshaw / python-scripture-scraper Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 23.68 MB

Tool for downloading public domain scripture content from ChurchofJesusChrist.org.

License: MIT License

Python 99.07% CSS 0.80% HTML 0.13%
bible book-of-mormon church-of-jesus-christ csv html json markdown mysql scriptures sqlite text tsv doctrine-and-covenants holy-bible python scraper scripture pearl-of-great-price holy-scriptures kjv

python-scripture-scraper's Issues

AttributeError: 'NoneType' object has no attribute 'find_next_sibling'

Python 3.11.3
Manjaro Linux
Linux 5.10.181-2-MANJARO

Getting languages
Warning: Language “asf” is not recognized and will be ignored (most likely it was added to Church content recently). To include this language, add it to the language mappings in resources.py.
Found 140 languages

Gathering metadata: af / Afrikaans (Afrikaans)
Gathering metadata: am / አማርኛ (Amharic)
Gathering metadata: ar / العربية (Arabic)
Gathering metadata: ase / American Sign Language (ASL) (ASL)
Gathering metadata: ay / Aymar Aru (Aymara)
Gathering metadata: bg / Български (Bulgarian)
Gathering metadata: bi / Bislama (Bislama)
Gathering metadata: bik / Bikol (Bikolano)
Gathering metadata: bla / Nitsi’powahsin (Blackfoot)
Gathering metadata: bm / Bambara (Bambara)
Gathering metadata: bn / বাংলা (Bengali)
Gathering metadata: ca / Català (Catalan)
Gathering metadata: cag / Nivacle (Chulupi)
Gathering metadata: cak / Cakchiquel (Kaqchikel)
Gathering metadata: ceb / Cebuano (Cebuano)
Gathering metadata: ch / Chamoru (Chamorro)
Gathering metadata: chk / Fosun Chuuk (Chuukese)
Gathering metadata: cmn-Hans / 简体中文 - 普通话 (Simplified Chinese/Mandarin)
Gathering metadata: cmn-Hant / 繁體中文 - 國語 (Traditional Chinese/Mandarin
  )
Gathering metadata: cs / Česky (Czech)
Gathering metadata: cuk / Dulegaya (Kuna)
Gathering metadata: cy / Cymraeg (Welsh)
Gathering metadata: da / Dansk (Danish)
Gathering metadata: de / Deutsch (German)
Traceback (most recent call last):
  File "/home/jared/Projects/scripture-scraper/scrape.py", line 1042, in <module>
    main()
  File "/home/jared/Projects/scripture-scraper/scrape.py", line 89, in main
    gather_metadata_for_language(language)
  File "/home/jared/Projects/scripture-scraper/scrape.py", line 282, in gather_metadata_for_language
    verse_range_separator_example = footnotes.select_one('#note1d_p1 a').find_next_sibling('a').text  # 'Mosiah 1:2–3'
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'find_next_sibling'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.