egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Eggdrop RSS Syndication (rss-synd) v0.5b1
Goto page Previous  1, 2, 3 ... 24, 25, 26
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
mcfly
Voice


Joined: 10 Jan 2017
Posts: 5

PostPosted: Tue Jan 10, 2017 11:47 am    Post subject: https not working Reply with quote

For the past 3 years i have been fighting with this script. Patch, changes, fixes, etc.

Finally I am stuck.

I followed this topic and did what is recommended but i still have one problem.

- Can't read/parse https://

Code:

(State: {error reading "sock6012b01550": software caused connection abort} {error reading "sock6012b01550": software caused connection abort
    while executing
"gets $sock state(http)"} {POSIX ECONNABORTED {software caused connection abort}})
SSL channel "sock6012b01550": error: tlsv1 alert internal error
RSS Error: Unable to decompress "https://url.something.rss.rss.php": Trf package not found.



Eggdrop is 1.8

Compiled:
Code:
./configure --with-sslinc --with-ssllib --enable-tls


Distro is gentoo and packages used are:

Code:

dev-lang/tcl 8.6.6
dev-tcltk/itcl 4.0.3
dev-tcltk/tcllib 1.16
dev-tcltk/tls 1.6-r3 (also tried 1.6.7
net-libs/gnutls 3.3.24-r1
dev-libs/openssl 1.0.2j


Modules loaded and compiled:
Code:
blowfish.so  channels.so  console.so  dns.so  irc.so  server.so


Scrips loaded:
Code:

source scripts/action.fix.tcl
source scripts/cmd_resolve.tcl
source scripts/alltools.tcl
source scripts/sentinel.tcl
source scripts/compat.tcl
source scripts/http_2.7.13.tcl
source scripts/egghttp.tcl
source scripts/rss-synd.tcl


What is it need to get https:// to work ?
I also do not need a fancy script and if anyone knows of any other that works with ssl/tls, i will give it a try.
Back to top
View user's profile Send private message
bugme
Voice


Joined: 13 Jan 2017
Posts: 2

PostPosted: Fri Jan 13, 2017 9:53 am    Post subject: Reply with quote

mcfly wrote:
For the past 3 years i have been fighting with this script. Patch, changes, fixes, etc.
Code:

SSL channel "sock6012b01550": error: tlsv1 alert internal error


I had the same error when deal with sites which uses SNI, like cloudflare (https://centmin.sh/ https://www.rust-lang.org/en-US/)

The solution is quite easy and described in tcl wiki https://wiki.tcl.tk/2630
Back to top
View user's profile Send private message
mcfly
Voice


Joined: 10 Jan 2017
Posts: 5

PostPosted: Mon Jan 16, 2017 11:15 pm    Post subject: Reply with quote

Those are great news but not being a coder I am having a hard time getting this to work.
It would be of great help if anyone could have this script updated somewhere.
Back to top
View user's profile Send private message
PR0r
Voice


Joined: 29 Oct 2014
Posts: 8

PostPosted: Sun Jan 29, 2017 2:00 am    Post subject: Reply with quote

I've recently installed this using the latest eggdrop 1.8 and it doesn't work. Anyone able to give advice on getting this up in running? Currently running Ubuntu 16.04 server and struggling.
Thanks!
Back to top
View user's profile Send private message
frybot
Voice


Joined: 08 Oct 2015
Posts: 1

PostPosted: Sun Jan 29, 2017 6:03 am    Post subject: Reply with quote

I'd also greatly appreciate a guide on how to get this working, specifically dealing with sites behind cloudflare.
Back to top
View user's profile Send private message
PR0r
Voice


Joined: 29 Oct 2014
Posts: 8

PostPosted: Tue Jan 31, 2017 7:06 am    Post subject: Reply with quote

I'm getting the following errors using Eggdrop 1.8. I've searched around and haven't found anything useful. Anyone have any ideas?

[06:02:00] RSS Error: Unable to decompress "http://feeds.reuters.com/news/reutersmedia": invalid command name " "
[06:03:00] RSS Error: Unable to decompress "http://www.kvirc.net/rss.php": invalid command name " "
Back to top
View user's profile Send private message
PR0r
Voice


Joined: 29 Oct 2014
Posts: 8

PostPosted: Wed Feb 15, 2017 7:35 am    Post subject: Reply with quote

Does anyone have this script working? I'm thinking about using an older eggdrop/tcl combination and trying again but would first like to hear what versions are working.
Back to top
View user's profile Send private message
mcfly
Voice


Joined: 10 Jan 2017
Posts: 5

PostPosted: Thu Feb 16, 2017 7:44 pm    Post subject: Reply with quote

No other version is fully working with https://
What other .tcl are you guys using for rss (https:// or http://) ?
Back to top
View user's profile Send private message
Get_A_Fix
Master


Joined: 07 May 2005
Posts: 206
Location: New Zealand

PostPosted: Fri Feb 17, 2017 7:57 pm    Post subject: Reply with quote

PR0r wrote:
I'm getting the following errors using Eggdrop 1.8. I've searched around and haven't found anything useful. Anyone have any ideas?

[06:02:00] RSS Error: Unable to decompress "http://feeds.reuters.com/news/reutersmedia": invalid command name " "
[06:03:00] RSS Error: Unable to decompress "http://www.kvirc.net/rss.php": invalid command name " "


Strange, I use rss-synd v0.4 and only add http feeds as it used to handle https but seems to have broken itself. It works fine, for the feeds I have added. Also, most RSS feeds use http if https doesn't work.
An example of the output is as follows:
Code:

   set rss(dc) {
      "url"         "http://www.thedailychronic.net/feed"
      "channels"      "##cannabis"
      "database"      "./scripts/dc.db"
      "output"      "[\002DailyChronic\002] \002Title\002: @@item!title@@@@entry!title@@ - \002Link\002: @@item!link@@@@entry!link@@ - \002Posted\002: @@item!pubDate@@@@entry!pubDate@@"
      "trigger"      "!dc"
   }


<Get_A_Fix> !dc
<@abusive> [DailyChronic] Title: Study: Medical Marijuana Patients Reduce Their Use of Opioids - Link: http://www.thedailychronic.net/2017/69698/study-medical-cannabis-patients-reduce-their-use-of-opioids/ - Posted: Thu, 16 Feb 2017 10:40:00 +0000
<@abusive> [DailyChronic] Title: The Respect State Marijuana Laws Act Reintroduced In Congress - Link: http://www.thedailychronic.net/2017/69687/the-respect-state-marijuana-laws-act-reintroduced-in-congress/ - Posted: Thu, 16 Feb 2017 00:26:00 +0000
<@abusive> [DailyChronic] Title: Guam Health Officials to Begin Licensing Medical Marijuana Dispensaries - Link: http://www.thedailychronic.net/2017/69682/guam-health-officials-to-begin-licensing-medical-cannabis-dispensaries/ - Posted: Wed, 15 Feb 2017 22:38:00 +0000
_________________
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.


Last edited by Get_A_Fix on Fri May 19, 2017 7:37 am; edited 1 time in total
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
mcfly
Voice


Joined: 10 Jan 2017
Posts: 5

PostPosted: Fri Apr 14, 2017 10:39 pm    Post subject: Reply with quote

RSS Syndication (rss-synd) v0.5b1 is finished and needs a re-write and better support.

I also tried Version: v0.4 Date: 2007-02-08 and although it worked with http:// the problem will ultimately happen when sites auto redirect to https:// (port 443) automatically which most sites do these days.

Code:
SSL channel "sock137dda0": error: sslv3 alert handshake failure
says it all.
And this problem affects most rss tlc scripts out there.


This tread should be closed to avoid letting people think that the script can still work.
Back to top
View user's profile Send private message
unforgiving
Voice


Joined: 27 Oct 2012
Posts: 3

PostPosted: Fri Apr 21, 2017 10:15 pm    Post subject: Reply with quote

Hi, I have only one RSS that uses HTTPS and it works fine, "https://www.srrdb.com/feed/srrs try it and check if it works for you, if doesn't works I can show you which configuration I used here.
Back to top
View user's profile Send private message
break
Voice


Joined: 16 May 2017
Posts: 1

PostPosted: Tue May 16, 2017 7:27 am    Post subject: Reply with quote

hey. i found a fix for another feed script on a website and used it to see if it works with rss synd also and it seems it does.
replace:

Code:
http::register https 443 tls::socket


with:

Code:
if { [info exists {my-ip}] == 1 && [string length ${my-ip}] > 0} {
  http::register https 443 [list tls::socket -myaddr ${my-ip} -tls1 1]
} elseif { [info exists {my-hostname}] == 1 && [string length ${my-hostname}] > 0} {
  http::register https 443 [list tls::socket -myaddr ${my-hostname} -tls1 1]
} else {
  http::register https 443 [list tls::socket -tls1 1]
}


i hope it works for you too Smile
Back to top
View user's profile Send private message
Zeta
Voice


Joined: 04 Apr 2008
Posts: 16

PostPosted: Sat Sep 16, 2017 5:39 am    Post subject: Reply with quote

Can someone help me with the tinyurl expansion?

I added both "source scripts/rss-synd.tcl" and "rss-synd-shortlink.tcl" to my eggdrop.conf file, but it doesn't works.

Code:

   set rss(emsc) {
      "url"         "https://www.emsc-csem.org/service/rss/rss.php?typ=emsc&magmin=2"
      "channels"      "#testtt"
      "database"      "./scripts/rssdb/emsc.db"
      "output"      "[\002EMSC\002] (@@item!emsc:time@@) @@item!title@@ @@item!emsc:depth@@ km - \[tinyurl @@item!link@@\]"
      "trigger"      "!emsc"
   }



Code:

proc ::rss-synd::tinyurl {url} {
  set tinyurl "http://tinyurl.com/api-create.php";
  set query [::http::formatQuery "url" $url]; 
  set token [::http::geturl "$tinyurl?$query" -timeout 5000];
  set url [::http::data $token];
  ::http::cleanup $token;
  return $url;
}


EDIT: I'm using rss-synd v0.4
I didn't find the v0.5b1

EDIT2: I added
"evaluate-tcl" 1
and now it works
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 24, 25, 26
Page 26 of 26

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber