Skip to content

Instantly share code, notes, and snippets.

(base) ➜ planner git:(master) docker build --build-arg SECRET_KEY_BASE=$SECRET_KEY_BASE -t 231123276278.dkr.ecr.eu-central-1.amazonaws.com/planner:latest .
[+] Building 27.1s (12/12) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 37B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 35B 0.0s
=> [internal] load metadata for 231123276278.dkr.ecr.eu-central-1.amazonaws.com/planner:base 1.1s
=> [auth] sharing credentials for 231123276278.dkr.ecr.eu-central
var pageLimit = document.querySelector('#m_lblPagingSummary > b:nth-child(3)').innerText;
pageLimit = parseInt(pageLimit);
for (var i = 1; i <= pageLimit; i++) {
setTimeout(function () {
var listingAddress = document.querySelectorAll("td.d128m16 .formula.field.d128m15")[0].innerText || 'unknown';
var listingLP = document.querySelector('tr.d128m13 td.d128m11').innerText || 'unknown';
var listingOLP = document.querySelectorAll('td.d128m11')[2].innerText || 'unknown';
var listingDescription = document.querySelectorAll('tr.d139m6')[0].querySelector('td.d139m4').innerText || 'unknown';
var listingAgentAddress = document.querySelectorAll('tr.d141m10')[0].querySelector('td.d141m4').innerText || 'unknown';
var destinationGoogleSheetURL = 'https://docs.google.com/spreadsheets/d/1Y2-9AhJZY2hgHIdRcxFajOR-KA-0nGzXeQKJMkXTfEk/edit#gid=0';
var pageLimit = document.querySelector('#m_lblPagingSummary > b:nth-child(3)').innerText;
pageLimit = parseInt(pageLimit);
for (var i = 1; i <= pageLimit; i++) {
setTimeout(function () {
var listingAddress = document.querySelectorAll("td.d128m16 .formula.field.d128m15")[0].innerText || 'unknown';
var listingLP = document.querySelector('tr.d128m13 td.d128m11').innerText || 'unknown';
var listingOLP = document.querySelectorAll('td.d128m11')[2].innerText || 'unknown';
var destinationGoogleSheetURL = 'https://docs.google.com/spreadsheets/d/1Y2-9AhJZY2hgHIdRcxFajOR-KA-0nGzXeQKJMkXTfEk/edit#gid=0';
var pageLimit = document.querySelector('#m_lblPagingSummary > b:nth-child(3)').innerText;
pageLimit = parseInt(pageLimit);
for (var i = 1; i <= pageLimit; i++) {
setTimeout(function () {
var listingAddress = document.querySelector(".d-mega.d-fontSize--larger.d-marginRight--20").innerText || 'unknown';
var listingLP = document.querySelector('.d-mega.d-fontWeight--bold.d-fontSize--larger.d-marginLeft--20').innerText || 'unknown';
var listingAgentName = document.querySelector('td.d94m49').innerText || 'unknown';
var destinationGoogleSheetURL = 'https://docs.google.com/spreadsheets/d/1Y2-9AhJZY2hgHIdRcxFajOR-KA-0nGzXeQKJMkXTfEk/edit#gid=0';
var pageLimit = document.querySelector('#m_lblPagingSummary > b:nth-child(3)').innerText;
pageLimit = parseInt(pageLimit);
for (var i = 1; i <= pageLimit; i++) {
setTimeout(function () {
var listingAddress = document.querySelectorAll("td.d128m16 .formula.field.d128m15")[0].innerText || 'unknown';
var listingLP = document.querySelector('tr.d128m13 td.d128m11').innerText || 'unknown';
var listingOLP = document.querySelectorAll('td.d128m11')[2].innerText || 'unknown';
var destinationGoogleSheetURL = 'https://docs.google.com/spreadsheets/d/1NCeCkHuALcyV_yKvW9KqCJUA3AIVanEr1MzjY0HXVoY/edit#gid=0';
var pageLimit = document.querySelector('#m_lblPagingSummary > b:nth-child(3)').innerText;
pageLimit = parseInt(pageLimit);
for (var i = 1; i <= pageLimit; i++) {
setTimeout(function () {
var listingAddress = document.querySelectorAll("td.d128m16 .formula.field.d128m15")[0].innerText || 'unknown';
var listingLP = document.querySelector('tr.d128m13 td.d128m11').innerText || 'unknown';
var destinationGoogleSheetURL = 'https://docs.google.com/spreadsheets/d/1Y2-9AhJZY2hgHIdRcxFajOR-KA-0nGzXeQKJMkXTfEk/edit#gid=0';
var pageLimit = document.querySelector('#m_lblPagingSummary > b:nth-child(3)').innerText;
pageLimit = parseInt(pageLimit);
for(var i = 1; i <= pageLimit; i++) {
setTimeout(function() {
var listingAddress = document.querySelector(".d-mega.d-fontSize--larger.d-marginRight--20").innerText ?? '';
var listingLP = document.querySelector('.d-mega.d-fontWeight--bold.d-fontSize--larger.d-marginLeft--20').innerText ?? '';
var listingAgentName = document.querySelector('td.d94m49').innerText ?? '';
var destinationGoogleSheetURL = 'https://docs.google.com/spreadsheets/d/1Y2-9AhJZY2hgHIdRcxFajOR-KA-0nGzXeQKJMkXTfEk/edit#gid=0';
var pageLimit = document.querySelector('#m_lblPagingSummary > b:nth-child(3)').innerText;
pageLimit = parseInt(pageLimit);
for(var i = 1; i <= pageLimit; i++) {
setTimeout(function() {
var listingAddress = document.querySelectorAll("td.d128m16 .formula.field.d128m15")[0].innerText ?? '';
var listingLP = document.querySelector('tr.d128m13 td.d128m11').innerText ?? '';
var listingOLP = document.querySelectorAll('td.d128m11')[2].innerText ?? '';
import os
from langchain.embeddings import OpenAIEmbeddings
from langchain.vectorstores import Pinecone
from langchain.chains import RetrievalQA
from langchain.chat_models import ChatOpenAI
from langchain.vectorstores import Pinecone
from langchain.document_loaders import TextLoader
from langchain.text_splitter import RecursiveCharacterTextSplitter
import pinecone
from langchain.chains.summarize import load_summarize_chain
{
"public_identifier": "williamhgates",
"profile_pic_url": "https://media-exp1.licdn.com/dms/image/C4D03AQHqRRhVsnaziA/profile-displayphoto-shrink_200_200/0/1626063510328?e=1640217600&v=beta&t=6sSKthJwkNGWUV2-V-8BQzirJFe7wBUCEuq7ZiE447A",
"background_cover_image_url": "https://media-exp1.licdn.com/dms/image/C4D16AQHCmaRo1aaK2w/profile-displaybackgroundimage-shrink_200_800/0/1626063499170?e=1640217600&v=beta&t=TAwSSpIkYPG2ybh1caSxUYOHG92j5xPoxSyoWhvEsEQ",
"first_name": "Bill",
"last_name": "Gates",
"full_name": "Bill Gates",
"occupation": "Co-chair at Bill & Melinda Gates Foundation",
"headline": "Co-chair, Bill & Melinda Gates Foundation",
"summary": "Co-chair of the Bill & Melinda Gates Foundation. Founder of Breakthrough Energy. Co-founder of Microsoft. Voracious reader. Avid traveler. Active blogger.",