If I have the following "
# Get the string from the XPath expression
string = response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/h1/span[2]/text()').get()

# Define the regular expression pattern
pattern = r'^(\D+)(\d+)\s'

# Match the pattern to the string and extract the groups
match = re.match(pattern, string)
if match:
 group1 = match.group(1)
 group2 = match.group(2)
 print(group1, group2)
else:
 print("No match found")
 data = {
 'Profile Image': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/aside[1]/div/div/a/img/@src').get(),
 'Username': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/h1/span[1]/text()').get(),
 'Age': group1,
 'Gender': group2,
 'City 1 URL': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/p/span[1]/a/@href').get(),
 'City 1 Text': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/p/span[1]/a/text()').get(),
 'Area URL': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/p/span[2]/a/@href').get(),
 'Area Text': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/p/span[2]/a/text()').get(),
 'Country URL': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/p/span[3]/a/@href').get(),
 'Country Text': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/p/span[3]/a/text()').get(),
 'Roles': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[3]/div[5]/div[2]/div[1]/div[2]/div[2]/text()').get(),
 'Orientation': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[3]/div[5]/div[2]/div[2]/div[2]/div[2]/span/text()').get(),
 'Active' : response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[3]/div[5]/div[2]/div[3]/div[2]/div[2]/text()').get(),
 'Looking For' : response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[3]/div[5]/div[2]/div[4]/div[2]/div[2]/text()').get(),
 'About' : response.xpath('/html/body/div[3]/div/div[2]/div/div[2]/div/main/div/div[1]/div/text()').get(),
 'Into' : response.xpath('/html/body/div[3]/div/div[2]/div/div[2]/div/main/div/div[4]/div/div/div/text()').get(),
 'Groups' : response.xpath('/html/body/div[3]/div/div[2]/div/div[2]/div/aside[1]/div/div[3]/text()').get()
}
" how do I update this. "collection.update\_one({'url': response.url}, {'$set': {'text': data['text'], 'parsed': True}})" to add this new data?
다음과 같은 "# XPath 표현식에서 문자열을 가져옵니다.string = response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/h1/span[2]/text()').get()# 정규식 패턴 정의pattern = r'^(\D+)(\d+)\s'# 패턴을 문자열에 일치시키고 그룹을 추출합니다.match = re.match(pattern, string)if match: group1 = match.group(1) group2 = match.group(2) print(group1, group2)else: print("일치하는 항목 없음") data = { '프로필 이미지': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/aside[1]/div/div/a/img/@src').get(), 'Username': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/h1/span[1]/text()').get(), 'Age': group1, '성별': group2, 'City 1 URL': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/p/span[1]/a/@href').get(), '도시 1 텍스트': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/p/span[1]/a/text()').get(), '영역 URL': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/p/span[2]/a/@href').get(), '영역 텍스트': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/p/span[2]/a/text()').get(), '국가 URL': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/p/span[3]/a/@href').get(), '국가 텍스트': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[1]/div[2]/p/span[3]/a/text()').get(), '국가': '국가').get(), 'Roles': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[3]/div[5]/div[2]/div[2]/div[1]/div[2]/div[2]/text()').get(), '오리엔테이션': response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[3]/div[5]/div[2]/div[2]/div[2]/div[2]/span/text()').get(), '방향', 'Active' : response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[3]/div[5]/div[2]/div[3]/div[2]/div[2]/text()').get(), 'Active' : '/html/body/div[3]/div/div[2]/div/div[2]/text(), 'Looking For' : response.xpath('/html/body/div[3]/div/div[2]/div/header[1]/div/div[1]/main/div/div[3]/div[5]/div[2]/div[4]/div[2]/div[2]/text()').get(), 'About' : response.xpath('/html/body/div[3]/div/div[2]/div/div[2]/div/main/div/div[1]/div/text()').get(), 'Into' : response.xpath('/html/body/div[3]/div/div[2]/div/div[2]/div/main/div/div[4]/div/div/div/text()').get(), 'Groups' : response.xpath('/html/body/div[3]/div/div[2]/div/div[2]/div/aside[1]/div/div[3]/text()').get()}"이걸 어떻게 업데이트하나요? "collection.update\_one({'url': response.url}, {'$set': {'text': data['text'], 'parsed': True}})"을 추가하여 이 새 데이터를 추가하려면 어떻게 해야 하나요?