{"id":23402629,"url":"https://github.com/martincastroalvarez/html2vec","last_synced_at":"2025-04-11T20:23:36.374Z","repository":{"id":106552492,"uuid":"309453766","full_name":"MartinCastroAlvarez/html2vec","owner":"MartinCastroAlvarez","description":"Algorithm that converts an HTML to a vectorized object suitable for neural networks.","archived":false,"fork":false,"pushed_at":"2020-11-02T18:28:46.000Z","size":209,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T16:21:46.294Z","etag":null,"topics":["data-science","html2vec","natural-language-processing","python","web-scraping","word2vec"],"latest_commit_sha":null,"homepage":"https://martincastroalvarez.com","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MartinCastroAlvarez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-02T18:01:50.000Z","updated_at":"2024-12-25T22:38:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"d294f61c-1eda-4bfe-ab65-d5132125023c","html_url":"https://github.com/MartinCastroAlvarez/html2vec","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fhtml2vec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fhtml2vec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fhtml2vec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MartinCastroAlvarez%2Fhtml2vec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MartinCastroAlvarez","download_url":"https://codeload.github.com/MartinCastroAlvarez/html2vec/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473664,"owners_count":21109750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-science","html2vec","natural-language-processing","python","web-scraping","word2vec"],"created_at":"2024-12-22T12:29:47.971Z","updated_at":"2025-04-11T20:23:36.364Z","avatar_url":"https://github.com/MartinCastroAlvarez.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html2vec\nAlgorithm that converts an HTML to a vectorized object suitable for neural networks, including sequential models.\n\n![wallpaper](/wallpaper.jpeg)\n![architecture](/architecture.jpg)\n\n## Instructions\nInstalling dependencies.\n```bash\nvirtualenv -p python3 .env\nsource .env/bin/activate\npip install -r requirements.txt\npython -m spacy download en_core_web_md\n```\nVectorizing HTML from the CLI\n```bash\npython3 html2vec.py \"https://hippie-inheels.com/3-day-new-orleans-itinerary/\"\n```\nVectorizing HTML inside a Python script.\n```python\nfrom html2vec import Html2Vec\n\nmodel: Html2Vec = Html2Vec()\nmodel.relatives = 5\nfor node in model.fit(html):\n    print(node)\n    print(node.get_vector())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincastroalvarez%2Fhtml2vec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartincastroalvarez%2Fhtml2vec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincastroalvarez%2Fhtml2vec/lists"}