title: unable to extract and read a particular part of link from a file
body: <p>So basically I was trying to scrape a Reddit link about game of thrones. This is the link: <a href="https://www.reddit.com/r/gameofthrones/wiki/episode_discussion" rel="nofollow noreferrer">https://www.reddit.com/r/gameofthrones/wiki/episode_discussion</a>, this has many other links! What i was trying was to scrape all the links in a file which is done! Now i Have to individually scrape every link and print out the data in individual files either csv or json. </p>
  
  <p>Ive tried all possible methods from google but still unable to come to a solution! Any help would be helpful</p>
  
  <pre><code>import praw
  import json
  import pandas as pd    #Pandas for scraping and saving it as a csv
  
  #This is PRAW.
  reddit = praw.Reddit(client_id='',
                       client_secret='',
                       user_agent='android:com.example.myredditapp:v1.2.3 (by /u/AshKay12)',
                       username='******',
                       password='******')
  
  subreddit=reddit.subreddit("gameofthrones")
  
  Comments = []
  submission = reddit.submission("links")
  
  with open('got_reddit_links.json') as json_file:
      data = json.load(json_file)
      for p in data:
          print('season: ' + str(p['season']))
          print('episode: ' + str(p['episode']))
          print('title: ' + str(p['title']))
          print('links: ' + str(p['links']))
          print('')
  
  
  submission.comments.replace_more(limit=None)
  for comment in submission.comments.list():
      print(20*'#')
      print('Parent ID:',comment.parent())
      print('Comment ID:',comment.id)
      print(comment.body)
      Comments.append([comment.body, comment.id])
  Comments = pd.DataFrame(Comments, columns=['All_Comments', 'Comment ID'])
  Comments.to_csv('Reddit3.csv')
  </code></pre>
  
  <p>This code prints out the links, title and episode number. It also extracts data when the link is manually entered but there are over 50 links in the webiste so i extracted those and put it in a file.</p>