This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from playwright.sync_api import sync_playwright, Playwright,TimeoutError as PlaywrightTimeoutError | |
import re | |
import csv | |
import os | |
from datetime import datetime | |
text_to_search=r"TCS|Tata Consultancy Services" | |
def write_to_csv(publish_date,header, content, filename='tata-2023.csv'): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
class ProductCard extends StatefulWidget { | |
final String name; | |
final String category; | |
ProductCard({required this.name, required this.category}); | |
@override | |
_ProductCardState createState() => _ProductCardState(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:dio/dio.dart'; | |
class WooCommerceService { | |
final String baseUrl = 'https://your-woocommerce-site.com/wp-json/wc/v3/'; | |
final String consumerKey = 'your_consumer_key'; | |
final String consumerSecret = 'your_consumer_secret'; | |
Dio dio = Dio(); | |
WooCommerceService() { |