This file contains 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 React from 'react'; | |
import TablesComp from '../../components/TablesComp'; | |
import OptionStrikeCol from '../../components/OptionStrikeCol'; | |
import { optionColumnNames } from './tableData'; | |
import Grid from '@material-ui/core/Grid'; | |
import { useSelector } from 'react-redux'; | |
import { ScrollSync, ScrollSyncPane } from 'react-scroll-sync'; | |
const OptionChainTable = () => { |
This file contains 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 React, { useEffect, useState } from 'react'; | |
import Centrifuge from 'centrifuge'; | |
const Option = () => { | |
const [askPriceList, setAskPriceList] = useState([]); | |
const [askPriceT, setAskPriceT] = useState(); | |
const [connected, setConnected] = useState(0); |
This file contains 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
#include<iostream> | |
#include<vector> | |
#include<string> | |
#include<algorithm> | |
using namespace std; | |
int main() { | |
string s1, s2; |
This file contains 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 GCompris 1.0 | |
import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory | |
Data { | |
objective: qsTr("Addition table of 1.") | |
difficulty: 4 | |
data: [ | |
{ // Level 1 | |
columns: 5, |
This file contains 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 requests | |
import json | |
from bs4 import BeautifulSoup as soup | |
s = requests.session() | |
URl = s.get('https://boodmo.com/catalog/3704-gaskets/m11290-maruti-swift_dzire/') | |
page_soup = soup(URl.text,"html5lib") |
This file contains 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
product_names = [] | |
for p in range(0,len(products_list)): | |
p_str = products_list[p] | |
d = json.loads(p_str) | |
p_name = d["name"] | |
product_names.append(p_name) |
This file contains 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
prices_list = [] | |
products_list = [] | |
for link in containers: | |
p = link.find_all('a') | |
for h in p: | |
products, price = h.get('data-boodmo-products'), h.get('data-boodmo-price') | |
products_list.append(products) | |
prices_list.append(price) |
This file contains 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
<div class="products_block" id="products_block"> | |
<div class="content_block"> | |
<ul class="clear_fix"> | |
<li> | |
<a data-boodmo-action="open" data-boodmo-action-field="click" data-boodmo-category="Interactions" data-boodmo-currency="INR" data-boodmo-label="productPage" data-boodmo-list="Catalog" data-boodmo-position="1" data-boodmo-price="124.00" data-boodmo-products='{"id":"5100820","number":"09247-14044","name":"PLUG, OIL DRAIN","familyId":"490","family":"Oil Drain Plug, oil pan","brand":"SUZUKIMARUTI","variant":"yes"}' data-event="event" href="/catalog/part-oil_drain_plug_oil_pan-5100820/" target="_blank"> | |
<div class="image"> | |
<img alt="Genuine Parts Guarantee" class="oem-icon" src="https://boodmo.com/img/oem_icon.png" width="65"/> | |
<span class="best-offer">Best Offer</span> | |
<img alt="PLUG, OIL DRAIN" src="https://boodmo.com/media/cache/catalog_list/images/parts/fe58b8eecf4 |
This file contains 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
page_soup = soup(URl.text,"html5lib") | |
containers = page_soup.find_all("div",{"class":"products_block"}) |
This file contains 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 requests | |
import json | |
from bs4 import BeautifulSoup as soup | |
s = requests.session() | |
URl = s.get('https://boodmo.com/catalog/3704-gaskets/m11290-maruti-swift_dzire/') |