fala-parlamentar


Namefala-parlamentar JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryMódulo para obtenção dos discursos dos parlamentares via webscraping mantendo a url para a publicação do texto
upload_time2023-11-21 00:46:17
maintainer
docs_urlNone
author
requires_python>=3.6
licenseThe MIT License Copyright (c) 2010-2020 Google, Inc. http://angularjs.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords web-scraping senado camara congresso-nacional
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            >## fala-parlamentar

Obtém os discursos dos parlamentares via webscraping mantendo a url para a publicação do texto

>## instalação

`pip install fala-parlamentar`

>## como usar
>### discursos senadores
```
In [1]: from fala_parlamentar import get_discursos_senador

In [2]: discursos = get_discursos_senador(3830, "2019-01-01", "2020-01-01") #id do Davi Alcolumbre

In [3]: discursos[0]
Out[3]: 
{'titulo': 'Pronunciamento de Davi Alcolumbre em 12/12/2019',
 'url_texto': 'http://www25.senado.leg.br/web/atividade/pronunciamentos/-/p/texto/463401',
 'transcricao': 'O SR. PRESIDENTE  (Davi Alcolumbre. Bloco/DEM - AP) – Eu gostaria de agradecer a todos que nos honraram com a presença nesta sessão solene. \nE declaro encerrada esta sessão.'}
```

>### discursos deputados
```
In [1]: from fala_parlamentar import get_discursos_deputado

In [2]: discursos = get_discursos_deputado("Domingos Neto", "2019-10-01", "2020-01-01")

In [3]: discursos[18]
Out[3]: 
{'urlTexto': 'https://www.camara.leg.br/internet/sitaqweb/TextoHTML.asp?etapa=5&nuSessao=11.2019&nuQuarto=77720&nuOrador=11&nuInsercao=11&dtHorarioQuarto=17:00&sgFaseSessao=OD&Data=20/02/2019&txApelido=RODRIGO%20MAIA%20(PRESIDENTE),%20DEM-RJ&txFaseSessao=Ordem%20do%20Dia&txTipoSessao=Deliberativa%20Ordin%C3%83%C2%A1ria%20-%20CD&dtHoraQuarto=17:00&txEtapa=',
 'transcricao': 'O SR. PRESIDENTE (Rodrigo Maia. Bloco/DEM - RJ) - Eu já recolhi a sua questão de ordem e vou indeferi-la, porque, por mais que boa parte do texto esteja prejudicada, ainda sobra algo que permanece.Então, infelizmente, não tem como deferir a sua questão de ordem.',
 'titulo': 'Pronunciamento de Rodrigo Maia em 20/02/2019'}
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "fala-parlamentar",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "web-scraping,senado,camara,congresso-nacional",
    "author": "",
    "author_email": "Jeferson Alves <contato@jefersonalves.com>",
    "download_url": "https://files.pythonhosted.org/packages/7e/34/6a99f01a275e8beb05252ce1573fba6344d03bc161d34c68466697398b93/fala-parlamentar-0.1.1.tar.gz",
    "platform": null,
    "description": ">## fala-parlamentar\n\nObt\u00e9m os discursos dos parlamentares via webscraping mantendo a url para a publica\u00e7\u00e3o do texto\n\n>## instala\u00e7\u00e3o\n\n`pip install fala-parlamentar`\n\n>## como usar\n>### discursos senadores\n```\nIn [1]: from fala_parlamentar import get_discursos_senador\n\nIn [2]: discursos = get_discursos_senador(3830, \"2019-01-01\", \"2020-01-01\") #id do Davi Alcolumbre\n\nIn [3]: discursos[0]\nOut[3]: \n{'titulo': 'Pronunciamento de Davi Alcolumbre em 12/12/2019',\n 'url_texto': 'http://www25.senado.leg.br/web/atividade/pronunciamentos/-/p/texto/463401',\n 'transcricao': 'O SR. PRESIDENTE  (Davi Alcolumbre. Bloco/DEM - AP) \u2013 Eu gostaria de agradecer a todos que nos honraram com a presen\u00e7a nesta sess\u00e3o solene. \\nE declaro encerrada esta sess\u00e3o.'}\n```\n\n>### discursos deputados\n```\nIn [1]: from fala_parlamentar import get_discursos_deputado\n\nIn [2]: discursos = get_discursos_deputado(\"Domingos Neto\", \"2019-10-01\", \"2020-01-01\")\n\nIn [3]: discursos[18]\nOut[3]: \n{'urlTexto': 'https://www.camara.leg.br/internet/sitaqweb/TextoHTML.asp?etapa=5&nuSessao=11.2019&nuQuarto=77720&nuOrador=11&nuInsercao=11&dtHorarioQuarto=17:00&sgFaseSessao=OD&Data=20/02/2019&txApelido=RODRIGO%20MAIA%20(PRESIDENTE),%20DEM-RJ&txFaseSessao=Ordem%20do%20Dia&txTipoSessao=Deliberativa%20Ordin%C3%83%C2%A1ria%20-%20CD&dtHoraQuarto=17:00&txEtapa=',\n 'transcricao': 'O SR. PRESIDENTE (Rodrigo Maia. Bloco/DEM - RJ) - Eu j\u00e1 recolhi a sua quest\u00e3o de ordem e vou indeferi-la, porque, por mais que boa parte do texto esteja prejudicada, ainda sobra algo que permanece.Ent\u00e3o, infelizmente, n\u00e3o tem como deferir a sua quest\u00e3o de ordem.',\n 'titulo': 'Pronunciamento de Rodrigo Maia em 20/02/2019'}\n```\n",
    "bugtrack_url": null,
    "license": "The MIT License  Copyright (c) 2010-2020 Google, Inc. http://angularjs.org  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "M\u00f3dulo para obten\u00e7\u00e3o dos discursos dos parlamentares via webscraping mantendo a url para a publica\u00e7\u00e3o do texto",
    "version": "0.1.1",
    "project_urls": {
        "homepage": "https://github.com/Jefersonalves/fala-parlamentar"
    },
    "split_keywords": [
        "web-scraping",
        "senado",
        "camara",
        "congresso-nacional"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9fb85f8933f92fd488db6175b2f77cd1d93358232f60fb0c438b66fa9a85e167",
                "md5": "af73687896410ec1e1e98a6502f26fcd",
                "sha256": "6eb917eeca79864f47632143f91c778e79c9562dc4539fcd30f6bf19a7c13b76"
            },
            "downloads": -1,
            "filename": "fala_parlamentar-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "af73687896410ec1e1e98a6502f26fcd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 6940,
            "upload_time": "2023-11-21T00:46:14",
            "upload_time_iso_8601": "2023-11-21T00:46:14.085975Z",
            "url": "https://files.pythonhosted.org/packages/9f/b8/5f8933f92fd488db6175b2f77cd1d93358232f60fb0c438b66fa9a85e167/fala_parlamentar-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7e346a99f01a275e8beb05252ce1573fba6344d03bc161d34c68466697398b93",
                "md5": "f7af4f4093ff45e6b3cc74d3667c85ab",
                "sha256": "be1ac1270c386820a6eefe68a9f1f931e8dd0d1da6df7a0c0be2165dec726116"
            },
            "downloads": -1,
            "filename": "fala-parlamentar-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "f7af4f4093ff45e6b3cc74d3667c85ab",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 5122,
            "upload_time": "2023-11-21T00:46:17",
            "upload_time_iso_8601": "2023-11-21T00:46:17.575469Z",
            "url": "https://files.pythonhosted.org/packages/7e/34/6a99f01a275e8beb05252ce1573fba6344d03bc161d34c68466697398b93/fala-parlamentar-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-21 00:46:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Jefersonalves",
    "github_project": "fala-parlamentar",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "fala-parlamentar"
}
        
Elapsed time: 0.14424s