AmzSear, bincika samfuran kan Amazon daga layin umarni

game da amzsear

A cikin labarin na gaba zamu kalli AmzSear. Wannan amfani shine CLI mara izini da API daga Amazon. Zai yardar mana a sauƙaƙe bincika kundin samfurin Amazon daga layin umarni ba tare da buƙatar maɓallin API API ba. Wannan wani abu ne mai ban sha'awa a wannan lokacin yayin da Amazon da sauran kamfanoni ke shirya hajojin yaƙi tare da ragi, samfuran keɓaɓɓu da sauran abubuwan jan hankali ga masu siye.

AmzSear rubutu ne mara izini don aiki tare Amazon. Tare da amzSear zamu sami damar samun damar sauƙaƙe bincika samfuran akan Amazon daga layin umarni kuma ga ainihin bayanan samfurin, kamar duk farashin masu siyarwa daban-daban, URL ɗin, rabe-raben kowane samfurin , kai tsaye daga taga tashar ka, ba tare da amfani da API na Amazon ba. Wannan mai amfani shine da yardar kaina a GitHub kuma an sake shi a ƙarƙashin lasisin MIT.

Shigar da AmzSear akan Ubuntu 17.10

AmzSear yana buƙatar sigar Python 2.7 ko sama don aiki daidai. Dole ne mu tabbatar mun girka bututu akan tsarin mu. Idan ba a saka pip ba, za mu iya shigar da shi ta hanya mai sauƙi kamar yadda aka nuna a ƙasa.

A cikin Ubuntu da dangoginsa, kawai zamu buɗe tashar (Ctrl + Alt + T) tare da aiwatar da wannan umarnin zuwa shigar da bututu:

sudo apt install python-pip

Da zarar mun sanya bututu, zamu girka AmzSear a cikin wannan tashar ta amfani da pip tare da umarnin:

sudo pip install amzsear

Yadda ake amfani da AmzSear

El daidaitaccen umarni Don amfani da amzSear zai zama:

amzsear query_string [-p lamba [-i num]] [-q] [-v] [-d]

Bincika samfur da suna

Bari muyi ƙoƙari mu sami samfurin, kamar littafin «Kogi a cikin Duhu: Mans ɗaya ya tsere daga Koriya ta Arewa«. Saboda wannan zamu rubuta:

Binciken samfuran amzsear

amzsear 'A River in Darkness: One Mans Escape from North Korea'

Zai nuna mana sakamako dangane da namu bincika kirtani a cikin kundin samfurin Amazon a tashar mu. A cikin wannan misalin sakamako ɗaya kawai za a nuna.

Za a kuma nuna mana sakamako a cikin burauzar gidan yanar gizon mu qaddara

amzsear kayan bincike na amzsear

Ba lallai ne mu ba da ainihin lokacin bincike ba. Mayila mu yi amfani da kalmomin binciken da suka dace kamar yadda zai iya zama ga wannan misalin «Kogi cikin Duhu»Kuma ga sakamakon duka a cikin tashar da kuma cikin binciken.

amzsear samfurin bincike masu dacewa

Duba sakamako a kowane shafi

Rubutun AmzSear zai nuna mana sakamakon shafin farko kawai. Amma kuma zamu iya tantance takamaiman lambar shafi kamar yadda aka nuna a cikin masu zuwa:

amzsear 'A River in Darkness' -p 2

Wannan umarnin, kamar waɗanda suka gabata, zai nuna mana sakamakon shafi na biyu na kundin samfuran Amazon duka a cikin tashar da kuma cikin mai binciken.

Duba sakamako a cikin mai binciken kawai

Idan ba mu so a nuna sakamakon a cikin tashar amma a cikin burauzar yanar gizo, za mu iya amfani da -q zaɓi kamar yadda aka nuna a kasa.

shafin bincike na amzsear 2

amzsear 'A River in Darkness' -p 2 -q

Kamar yadda nace, wannan umarnin zai nuna shafi na biyu na sakamako kawai a cikin gidan yanar gizo. Ba za mu ga wani sakamako a cikin tashar ba.

Duba sakamako kawai a cikin m

Hakanan, idan muna son ganin sakamakon kawai a cikin m ba a cikin burauzar yanar gizo ba, dole ne mu yi amfani da -d zaɓi.

Shafin samfurin amzsear shafi na 2

amzsear 'A River in Darkness' -p 2 -d

Duba duk bayanan samfurin

Don tashar ta nuna duk bayanan game da samfurin, kamar suna, URL, duk farashin da sarkar rarrabuwa, da sauransu, dole ne mu kara -v zaɓi.

Amzsear samfurin bincike ya nuna duk bayanai

amzsear 'A River in Darkness' -d -v

Wannan umarnin zai nuna mana shafin farko na sakamako kawai a cikin tashar. Muna iya neman a nuna mana wani shafi. Hakanan za a nuna mana dukkan bayanai, kamar su URL, farashin masu siyarwa daban-daban da ƙimar kayayyakin da aka nuna, kamar yadda kuke gani a hoton da ke sama.

Wadannan sakamakon ba za su nuna a burauzar ba, tunda mun hada da -d zabin. Idan muna so mu duba sakamakon duka a cikin tashar da kuma cikin mai binciken, kawai zamu cire zabin -d daga umarnin.

Gargadi

Waɗanda ke amfani da wannan rubutun akai-akai don bincika samfuran kan Amazon dole ne su yi hankali. Amazon ya sanya alama iri iri iri a matsayin bot kuma ya dakatar da adiresoshin IP waɗanda ke aika tambayoyin maimaitawa. Saboda haka, yana da kyau idan kayi amfani dashi ta hanyar VPN ko wakili. Hakanan yana da kyau mu takaita bincikenmu har sai mai tasowa ya kawo mafita.

Cire AmzSear

Don kawar da wannan rubutun daga tsarinmu, kawai zamu buɗe tashar (Ctrl + Alt + T) kuma rubuta umarnin mai zuwa a ciki:

sudo pip uninstall amzsear

Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Wanda ke da alhakin bayanan: Miguel Ángel Gatón
  2. Manufar bayanan: Sarrafa SPAM, sarrafa sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.