Skip to content

PHP webpage and mIRC script to parse a website title from a URL (sent in an IRC channel) and return said title via a channel message

License

Notifications You must be signed in to change notification settings

Moodkiller/GetLinkInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Setup

  1. Copy getlinkinfo-v2.php to your server or website.
  2. Copy GetLinkInfo.mrc to your mIRC script directory and load with /load -a scripts/GetLinkInfo.mrc.
    • If using your own webserver, change this line to match.
    • Any changes can be reloaded with the /reload -a scripts/GetLinkInfo.mrc.

Usage:

getlinkinfo-v2.php?url=ABC
Enable with +/-Linkinfo when on a channel (and have mod status)
The mIRC script is set to parse for links automatically and feed the url to the hosted phps script when enabled on a channel.

Output (web):

image

Output (irc):

image

Features (PHP):

  • Toggle for debugging / easy to find where the "title" is located in the pulled HTML.
  • Can scrape YouTube titles without an API.
  • Output is placed within <linkinfo> tags taht can easly parsed by other services. I.e the aforementioend mIRC script.
  • Lightweight.
  • Only requires PHP.
  • Shows PHP errors by default.
  • Shows preview of Image if an image is found and outputs relevant data:

Features (mIRC):

  • Can be enabled (or disabled) per channel by issuing +/-Linkinfo as an owner or mod of the script.
  • Context menu (easily enable or disable silently).
  • Ignore user/nick list (edit this line).
  • Easy customisable logo and calours for message sent to IRC

Limitations:

  • Doesnt work on sites that require cookies and/or Javascript.
  • Doesnt work on sites that have more than 20 redirects.
  • Depending on your server configureation, https connections may not work.

About

PHP webpage and mIRC script to parse a website title from a URL (sent in an IRC channel) and return said title via a channel message

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published