title: How to find A img tag url inside a column of CSV File which has a lot of links and compare that link with the same present in other CSV file
body: <pre><code>import csv
  # Read input Topic or Reply file
  csvfile = open('rad.csv', newline='')
  reader = csv.reader(csvfile)
  csvfile1 = open('new.csv', newline='')
  reader1 = csv.reader(csvfile1)
  # Extract image sources
  for row in reader:
      content = row[8]
      imageExists = &quot;&lt;img&quot; in content and &quot;src=\&quot;&quot; in content
      #print(imageExists)
      imageNum = 1
      while (imageExists):
          startPos = content.find(&quot;src=\&quot;&quot;) + 5
          endPos = content.find(&quot;\&quot;&quot;, startPos)
          imageSrc = content[startPos:endPos]
          print(imageSrc)
          content = content[endPos + 1:]
          imageExists = &quot;&lt;img&quot; in content and &quot;src=\&quot;&quot; in content
          #print(imageExists)
          for row1 in reader1:
              #print(&quot;In For&quot;)
              content1 = row1[1]
              content2 = row1[7]
              print(content1)
              #print(imageSrc)
              if content1 == imageSrc:
                  row = imageSrc.replace(imageSrc,row1[7])
                  print(&quot;Done Match Found&quot;)
                  print(content2)
                  break
              else:
                  print(&quot;No Match&quot;)
          #imageExists = &quot;&lt;img&quot; in content and &quot;src=\&quot;&quot; in content
          #print(imageExists)
          imageNum += 1
  </code></pre>
  <p>How to find A img tag url inside a column of CSV File which has a  lot of links and compare that link with the same present in other CSV file and then replace with that link with a id</p>