Code Monkey home page Code Monkey logo

titlegetter's Introduction

My Intro

INFP-T / Arch User / Student / Learning FullStack Developer / CICD / CSCI

Contact

Gmail Outlook Outlook

Skills

Python CSS3 HTML5 JavaScript C PHP

Vue.js Vuetify Vite FastAPI Flask Jinja

Learning

Docker OpenStack Kubernetes

Operating System

Windows Arch Android

Editor

Vim Visual Studio Code PyCharm

Browser

Google Chrome Firefox

Stats

Anurag's GitHub stats

trophy

titlegetter's People

Contributors

felixonmars avatar weepingdogel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

felixonmars

titlegetter's Issues

There's a bug in Batch Mode.

According to the test, I spot a bug when trying getting multiple titles.

 /_  __/(_)/ /_ / /___     / ____/___   / /_ / /_ ___   _____
  / /  / // __// // _ \   / / __ / _ \ / __// __// _ \ / ___/
 / /  / // /_ / //  __/  / /_/ //  __// /_ / /_ /  __// /    
/_/  /_/ \__//_/ \___/   \____/ \___/ \__/ \__/ \___//_/     
                                                             
By WeepingDogel

[Loaded] https://wiki.gentoo.org/wiki/Main_Page
Traceback (most recent call last):
  File "/usr/bin/titlegetter", line 232, in <module>
    Page = Do.GetPage(headers=headers, URL=PureURL, session=session)
TypeError: Process.GetPage() missing 1 required positional argument: 'config'

Obviously, it's a problem in missing an argument in line 232.

Page = Do.GetPage(headers=headers, URL=PureURL, session=session)

OK, then I'll add it back here.

Page = Do.GetPage(headers=headers, URL=PureURL, session=session, config=config)

then, problem is fixed! All done!

批量模式空行 bug

list.txt 中出现空行时

https://github.com/WeepingDogel/TitleGetter
https://github.com/piggy-moe/subtitle
https://www.bilibili.com/


就会报错

weepingdogel@WeepingDogel ~/写/P/TitleGetter (master) [1]> proxychains -q python titlegetter.py

╭━━━━╮╭╮╭╮╱╱╱╱╭━━━╮╱╱╭╮╱╭╮
┃╭╮╭╮┣╯╰┫┃╱╱╱╱┃╭━╮┃╱╭╯╰┳╯╰╮
╰╯┃┃┣╋╮╭┫┃╭━━╮┃┃╱╰╋━┻╮╭┻╮╭╋━━┳━╮
╱╱┃┃┣┫┃┃┃┃┃┃━┫┃┃╭━┫┃━┫┃╱┃┃┃┃━┫╭╯
╱╱┃┃┃┃┃╰┫╰┫┃━┫┃╰┻━┃┃━┫╰╮┃╰┫┃━┫┃
╱╱╰╯╰╯╰━┻━┻━━╯╰━━━┻━━┻━╯╰━┻━━┻╯
    
Version: 1.0.1

Type a filename: try2
Requested Successfully
[GitHub - WeepingDogel/TitleGetter: 用来获取链接标题的小爬虫...](https://github.com/WeepingDogel/TitleGetter)
Requested Successfully
[GitHub - piggy-moe/subtitle: a command line tool for extracting hard-coded subtitles from videos](https://github.com/piggy-moe/subtitle)
Requested Successfully
[哔哩哔哩 (゜-゜)つロ 干杯~-bilibili](https://www.bilibili.com/)
Traceback (most recent call last):
  File "titlegetter.py", line 68, in <module>
    response = session.get(url,headers=headers)
  File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
    return self.request('GET', url, **kwargs)
  File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 516, in request
    prep = self.prepare_request(req)
  File "/usr/lib/python3.8/site-packages/requests/sessions.py", line 449, in prepare_request
    p.prepare(
  File "/usr/lib/python3.8/site-packages/requests/models.py", line 314, in prepare
    self.prepare_url(url, params)
  File "/usr/lib/python3.8/site-packages/requests/models.py", line 388, in prepare_url
    raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '': No schema supplied. Perhaps you meant http://?

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.