{"id":17368012,"url":"https://github.com/wilhelmy/eggdrop-urlmagic","last_synced_at":"2026-02-03T04:02:34.517Z","repository":{"id":69839382,"uuid":"270821991","full_name":"wilhelmy/eggdrop-urlmagic","owner":"wilhelmy","description":"website title fetcher for eggdrop with many plugins","archived":false,"fork":false,"pushed_at":"2020-06-08T21:48:55.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T18:39:12.740Z","etag":null,"topics":["eggdrop","eggdrop-scripts","eggdrop-tcl-scripts","maintainer-wanted"],"latest_commit_sha":null,"homepage":"","language":"Tcl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wilhelmy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-06-08T20:45:34.000Z","updated_at":"2020-09-08T08:41:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"fbab839c-ebfc-4a12-bbde-e7e30cee9d28","html_url":"https://github.com/wilhelmy/eggdrop-urlmagic","commit_stats":{"total_commits":126,"total_committers":4,"mean_commits":31.5,"dds":"0.031746031746031744","last_synced_commit":"4c86a029c8d7e7b4b7f2455ebcd41cb1b3955852"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wilhelmy/eggdrop-urlmagic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilhelmy%2Feggdrop-urlmagic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilhelmy%2Feggdrop-urlmagic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilhelmy%2Feggdrop-urlmagic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilhelmy%2Feggdrop-urlmagic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wilhelmy","download_url":"https://codeload.github.com/wilhelmy/eggdrop-urlmagic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wilhelmy%2Feggdrop-urlmagic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260915890,"owners_count":23082039,"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":["eggdrop","eggdrop-scripts","eggdrop-tcl-scripts","maintainer-wanted"],"created_at":"2024-10-15T23:23:10.802Z","updated_at":"2026-02-03T04:02:34.432Z","avatar_url":"https://github.com/wilhelmy.png","language":"Tcl","funding_links":[],"categories":[],"sub_categories":[],"readme":"urlmagic\n========\n\nWritten by rojo and ente\n\nDescription\n-----------\n\nDoes following magic things with URLs:\n\n  * Follows links posted in a channel if the udef flag +urlmagic is set\n  * If content-type ~ text/html and \u003ctitle\u003econtent exists\u003c/title\u003e display title\n  * Otherwise, display content-type\n  * If url length \u003e threshold, fetch and display tinyurl\n\nOptional features\n-----------------\n\nPlugins exist for\n\n  * Optionally recording all URLs to your Twitter page or an SQLite database\n  * Flagging links as NSFW if it was mentioned in the text next to the link\n  * Displaying the size of a page\n  * Displaying the final destination URL in case there was a redirect\n\nIn short, what's displayed and what isn't can be influenced by plugins.\n\nThis script needs at least the following packages: http, tls and tcllib (for hook)\nIt is advised to also install the gumbo library for more failsafe HTML parsing.\nYour eggdrop needs to be compiled against Tcl 8.5 or higher.\n\nDependencies\n------------\n\nUse your distribution's package management system to install the dependencies\nas appropriate.\n\nFor optional dependencies introduced by specific plugins, check the directory of\nthe plugin you want to use for a file called README.\n\nAs of 2017-10-25 the HTTP implementation used by urlmagic has been changed to\nTclCurl, which simplifies the code and is more robust. You now need to install\ntclcurl instead of tcltls for urlmagic to work - distributions which don't have\na tclcurl package (RedHat, Gentoo, FreeBSD) have been stripped from the\nexamples. Please (make someone) package it and notify me.\n\n### Examples:\n\n#### Debian / Ubuntu:\n\n  * apt-get install git             (optional; makes updating easier)\n  * apt-get install tcllib tclcurl  (no matter what plugins are enabled; \"core\")\n  * apt-get install libsqlite3-tcl  (if sqlite plugin is enabled)\n\nOn Debian stretch and above, there is a package for the gumbo title parser:\n\n  * apt-get install libgumbo-dev build-essential (optional, possible title parser)\n\n#### OpenSuSE:\n\n  * zypper install git              (optional)\n  * zypper install tcllib tclcurl   (core)\n  * (sqlite plugin does not require extra packages to be installed)\n\n#### NetBSD (pkgsrc package names):\n\n  * devel/git                       (optional)\n  * devel/tcllib wip/tcl-curl       (core)\n  * databases/sqlite3               (sqlite)\n\n\n### Title parsers\n\nThe \"dumb\" regex-based title extraction regexp is not very reliable. Therefore,\nthere are multiple options for extracting the title out of the HTML documents\ndownloaded from the server. The most reliable option is using Google's gumbo\nlibrary, however it isn't packaged for any distributions I've checked (and\nneither is the much less robust arabica library, which has been around for\nseveral years longer). To avoid making each potential user compile their own\ngumbo version, I've written a title parser in perl that is invoked via pipe,\nbecause html5 parsers for perl are more easily available than for Tcl or C.\n\nOn OpenSuSE, you can find a repository/package for Perl's html5 parser here:\n\n  * http://software.opensuse.org/package/perl-HTML-HTML5-Parser\n\nAlternatively, you can install the perl packages from cpan (for instance if\nyou're not on debian and your distribution doesn't have a package). The command\nis:\n\n  * cpan HTML::HTML5::Parser\n\n\nProblems\n--------\n\nSee the file TROUBLESHOOTING.\n\nPlease report bugs, gripes, missing operating systems in the table above, etc\nto ente on IRCnet, and feel free to let me know if you use it, or just contact\nme for chit-chat.\n\nThis repository used to live on bitbucket, but it has since moved to github.\nSee https://bitbucket.org/wilhelmy/eggdrop-urlmagic/issues/ for the issue\ntracker.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilhelmy%2Feggdrop-urlmagic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilhelmy%2Feggdrop-urlmagic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilhelmy%2Feggdrop-urlmagic/lists"}