04-20-2019 10:56 AM
I have below python code to pass script output to file reader snap. As script needs some libraries,are they supported by snaplogic? Please suggest how to execute this script.
Code:
import requests
from bs4 import BeautifulSoup
import re
url = ‘https://www.cms.gov/Medicare-Medicaid-Coordination/Medicare-and-Medicaid-Coordination/Medicare-Medic...’
response = requests.get(url)
soup = BeautifulSoup(response.text, “html.parser”)
all_links=soup.findAll(‘a’)
link=soup.find(‘a’, title=re.compile(‘MMEnrolleeStateandCountyEnrollmentSnapshotsQuarterly’))
file_name = (link[‘href’])
04-30-2019 03:03 AM
Can someone shed some some light on this query? Thanks.
07-16-2019 06:18 AM
Hi,Have you got solution for this…?
07-16-2019 07:52 AM
I have implemented this by hard coding the link in the snap. excluded this python script
07-17-2019 12:00 AM
Thank you for the quick reply.I appreciate it.