home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   PYTHON      Support for the Python language      96 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 65 of 96   
   Charles Pierson to All   
   Error message   
   05 Feb 21 14:35:27   
   
   TID: Mystic BBS 1.12 A46   
   MSGID: 1:106/127 031409d9   
   TZUTC: -0600   
   I'm trying to make an RSS scraper to pull articles from RSS feeds and export   
   them to text files, to be used either in my  BBS bulletins or message areas   
      
   I found a web page that supposedly does exactly this, however using the code   
   and testing I get the Folliwing error:   
      
      
   python scraping.py   
   File "scraping.py", line 5      
     def   
   hackernews_rss('https://news.ycombinator.com/rss'):                             
                                          ^   
    SyntaxError: invalid   
   syntax   
      
      
      
   The code is:   
      
   # scraping function   
   def hackernews_rss('https://news.ycombinator.com/rss'):   
       try:   
           r = requests.get()   
           return print('The scraping job succeeded: ', r.status_code)   
       except Exception as e:   
           print('The scraping job failed. See exception: ')   
           print(e)print('Starting scraping')   
   hackernews_rss()   
   print('Finished scraping')   
      
      
   Any idea what I flubbed?   
      
   Thanks   
      
   --- Mystic BBS v1.12 A46 2020/08/26 (Raspberry Pi/32)   
    * Origin: theoasisbbs.ddns.net:1357 (1:106/127)   
   SEEN-BY: 1/123 90/1 105/81 106/127 120/340 123/131 124/5016 153/135   
   SEEN-BY: 153/250 757 802 6809 203/0 220/70 221/0 6 226/17 30 100 227/114   
   SEEN-BY: 227/702 229/424 426 616 664 1016 1017 240/5411 5824 5832   
   SEEN-BY: 240/5853 249/206 317 400 267/800 280/464 5003 288/100 292/8125   
   SEEN-BY: 317/3 322/757 340/1000 342/200 423/120 712/848 770/1 100   
   SEEN-BY: 770/340 772/220 230 2452/250   
   PATH: 106/127 221/6 153/757 770/1 280/464 240/5832 229/426   
      

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca