ataknkcyn / pinterest-crawler Goto Github PK
View Code? Open in Web Editor NEWDownloads all images suitable for search
Downloads all images suitable for search
Hi there
actually I'm newcomer in crawling. could you tell me how this part of code works ?
#search parameter "data"
@property
def image_data(self):
if self.bookmarks == "":
return '''{"options":{"isPrefetch":false,"query":"''' + self.search_keyword + '''","scope":"pins","no_fetch_context_on_resource":false},"context":{}}'''
else:
return '''{"options":{"page_size":25,"query":"''' + self.search_keyword + '''","scope":"pins","bookmarks":["''' + self.bookmark + '''"],"field_set_key":"unauth_react","no_fetch_context_on_resource":false},"context":{}}'''.strip()
I'm really interested how did you understand this data needed. i mean where you exactly find this parameter ? in network tab i searching many times but i couldn't find data parameter, where you find this param?
for example I think source_url param is for X_pinterest_Source_url. (if i'm wrong tell me 🥲 )
Merhaba Atakan,
Paylaşımın için teşekkürler. Kodu rahatlıkla çalıştırabildim.
Web hakkında hiçbir bilgisi olmayan biri olark soruyorum.
Aşağıdaki linkte, pinterest'in visual search ile ilgili örneği var. Ben bir image üzerindeki tıklanabilir nesnelere tıkladığımda, Pinterest bu nesnelere en benzer ürünleri getiriyor. Bu image üzerindeki her bir tıklanabilir nesne ile ilişkili getirilen diğer nesnelere sırayla nasıl erişebilirim? Bunları nasıl indirebilirim? Nerden başlayabilirim?
Yardımların için şimdiden çok teşekkürler.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.